You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by rl...@apache.org on 2015/12/17 08:18:04 UTC

incubator-hawq git commit: HAWQ-254. Fix stop standby return value is NULL when no standby.

Repository: incubator-hawq
Updated Branches:
  refs/heads/master f11fa49e6 -> 272baf39a


HAWQ-254. Fix stop standby return value is NULL when no standby.


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/272baf39
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/272baf39
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/272baf39

Branch: refs/heads/master
Commit: 272baf39a44685d1c4b0ec7019d0b88f449b7c9a
Parents: f11fa49
Author: rlei <rl...@pivotal.io>
Authored: Thu Dec 17 15:08:25 2015 +0800
Committer: rlei <rl...@pivotal.io>
Committed: Thu Dec 17 15:13:37 2015 +0800

----------------------------------------------------------------------
 tools/bin/hawq_ctl | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/272baf39/tools/bin/hawq_ctl
----------------------------------------------------------------------
diff --git a/tools/bin/hawq_ctl b/tools/bin/hawq_ctl
index 4c0652a..173a106 100755
--- a/tools/bin/hawq_ctl
+++ b/tools/bin/hawq_ctl
@@ -663,6 +663,9 @@ class HawqStop:
 
     def _stopAll(self):
         logger.info("Stop hawq cluster")
+        master_result = 0
+        standby_result = 0
+        segments_return_flag = 0
         master_result = self._stop_master()
         if master_result != 0:
             logger.error("Master stop failed")