Return-Path: X-Original-To: apmail-hawq-commits-archive@minotaur.apache.org Delivered-To: apmail-hawq-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 27A5618BCC for ; Fri, 20 Nov 2015 03:13:58 +0000 (UTC) Received: (qmail 42006 invoked by uid 500); 20 Nov 2015 03:13:58 -0000 Delivered-To: apmail-hawq-commits-archive@hawq.apache.org Received: (qmail 41965 invoked by uid 500); 20 Nov 2015 03:13:57 -0000 Mailing-List: contact commits-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list commits@hawq.incubator.apache.org Received: (qmail 41956 invoked by uid 99); 20 Nov 2015 03:13:57 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2015 03:13:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7BB14180179 for ; Fri, 20 Nov 2015 03:13:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.771 X-Spam-Level: * X-Spam-Status: No, score=1.771 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id VVIXsWjM4VGu for ; Fri, 20 Nov 2015 03:13:51 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 2E958232C0 for ; Fri, 20 Nov 2015 03:13:51 +0000 (UTC) Received: (qmail 41450 invoked by uid 99); 20 Nov 2015 03:13:51 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2015 03:13:51 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AFE2AE1809; Fri, 20 Nov 2015 03:13:50 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: rlei@apache.org To: commits@hawq.incubator.apache.org Message-Id: <58578d3fdb404f85a85187278b0fc956@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-hawq git commit: HAWQ-168. Enhance hawq start/stop speed. Date: Fri, 20 Nov 2015 03:13:50 +0000 (UTC) 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 Authored: Tue Nov 17 15:15:27 2015 +0800 Committer: rlei 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")