You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jj...@apache.org on 2017/08/11 01:02:47 UTC

cassandra git commit: cqlsh: don't pause when capturing data

Repository: cassandra
Updated Branches:
  refs/heads/trunk 4b736366c -> ed0243954


cqlsh: don't pause when capturing data

Patch by Corentin Chary; Reviewed by Chris Lohfink for CASSANDRA-13473


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

Branch: refs/heads/trunk
Commit: ed0243954f9ab9c5c68a4516a836ab3710891d5b
Parents: 4b73636
Author: Corentin Chary <c....@criteo.com>
Authored: Fri Aug 4 10:19:57 2017 +0200
Committer: Jeff Jirsa <jj...@apple.com>
Committed: Thu Aug 10 18:02:31 2017 -0700

----------------------------------------------------------------------
 CHANGES.txt  | 1 +
 bin/cqlsh.py | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ed024395/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 808665a..5c6994a 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -107,6 +107,7 @@
  * Nodetool repair can hang forever if we lose the notification for the repair completing/failing (CASSANDRA-13480)
  * Anticompaction can cause noisy log messages (CASSANDRA-13684)
  * Switch to client init for sstabledump (CASSANDRA-13683)
+ * CQLSH: Don't pause when capturing data (CASSANDRA-13473)
 
 
 3.11.1

http://git-wip-us.apache.org/repos/asf/cassandra/blob/ed024395/bin/cqlsh.py
----------------------------------------------------------------------
diff --git a/bin/cqlsh.py b/bin/cqlsh.py
index 4e634ca..2e10490 100644
--- a/bin/cqlsh.py
+++ b/bin/cqlsh.py
@@ -1084,7 +1084,9 @@ class Shell(cmd.Cmd):
                     num_rows += len(result.current_rows)
                     self.print_static_result(result, table_meta)
                 if result.has_more_pages:
-                    raw_input("---MORE---")
+                    if self.shunted_query_out is None:
+                        # Only pause when not capturing.
+                        raw_input("---MORE---")
                     result.fetch_next_page()
                 else:
                     break


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org