hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject incubator-hawq git commit: HAWQ-168. Enhance hawq start/stop speed.
Date Fri, 20 Nov 2015 03:13:50 GMT
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 <rlei@pivotal.io>
Authored: Tue Nov 17 15:15:27 2015 +0800
Committer: rlei <rlei@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")


Mime
View raw message