You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by su...@apache.org on 2017/08/01 18:43:33 UTC
[3/4] incubator-trafodion git commit: Missed one change to
sqnodestatus script.
Missed one change to sqnodestatus script.
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/e7ac9acf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/e7ac9acf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/e7ac9acf
Branch: refs/heads/master
Commit: e7ac9acf98d5c1d2ba3f84e08122106793664400
Parents: 9e4630d
Author: Zalo Correa <za...@esgyn.com>
Authored: Mon Jul 31 22:24:12 2017 -0700
Committer: Zalo Correa <za...@esgyn.com>
Committed: Mon Jul 31 22:24:12 2017 -0700
----------------------------------------------------------------------
core/sqf/sql/scripts/sqnodestatus | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/e7ac9acf/core/sqf/sql/scripts/sqnodestatus
----------------------------------------------------------------------
diff --git a/core/sqf/sql/scripts/sqnodestatus b/core/sqf/sql/scripts/sqnodestatus
index 5229a7e..44dc93f 100755
--- a/core/sqf/sql/scripts/sqnodestatus
+++ b/core/sqf/sql/scripts/sqnodestatus
@@ -82,6 +82,8 @@ sub check_node_status($)
{
my $node_id, $node_status;
my $check_node=shift;
+ my @basenode = split(/\./,$check_node);
+
#print "node=${check_node}\n";
my $command="ssh -M -q $sq_mon_ssh_options $check_node hostname 2>&1";
#print "command=${command}\n";
@@ -92,7 +94,8 @@ sub check_node_status($)
foreach my $check_result(@check_results)
{
- if($check_result =~ /^$check_node/)
+ my @baseresult = split(/\./,$check_result);
+ if($baseresult[0] == $basenode[0])
{
#print "check_result=${check_result}\n";
$node_id=$check_node;