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/11/20 04:13:50 UTC

incubator-hawq git commit: HAWQ-168. Enhance hawq start/stop speed.

Repository: incubator-hawq
Updated Branches:
  refs/heads/master c56c6f2ec -> e1bd6c6c3


HAWQ-168. Enhance hawq start/stop speed.


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

Branch: refs/heads/master
Commit: e1bd6c6c3f55942ddab700f1794d483fe64ac3dc
Parents: c56c6f2
Author: rlei <rl...@pivotal.io>
Authored: Tue Nov 17 15:15:27 2015 +0800
Committer: rlei <rl...@pivotal.io>
Committed: Fri Nov 20 10:48:18 2015 +0800

----------------------------------------------------------------------
 tools/bin/hawq_ctl | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/e1bd6c6c/tools/bin/hawq_ctl
----------------------------------------------------------------------
diff --git a/tools/bin/hawq_ctl b/tools/bin/hawq_ctl
index 880451a..254f545 100755
--- a/tools/bin/hawq_ctl
+++ b/tools/bin/hawq_ctl
@@ -757,19 +757,15 @@ def check_progress(q, total_num, action, quiet=False):
     pnum = 0
     sys.stdout.write("\r")
     while working_num > 0:
-        if not q.empty():
+        while not q.empty():
             msg = q.get()
             if msg[0] == "done":
                 working_num = working_num - 1
             if msg[2] == 0:
                 success_num = success_num + 1
-            if not quiet:
-                sys.stdout.write(".")
-                sys.stdout.flush()
-        else:
-            if not quiet:
-                sys.stdout.write(".")
-                sys.stdout.flush()
+        if not quiet:
+            sys.stdout.write(".")
+            sys.stdout.flush()
         time.sleep(1)
     if not quiet:
         sys.stdout.write("\n")