Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.2 43e2a1070 -> a8e2dc524
  refs/heads/cassandra-3.0 e7299c08f -> 45218f918
  refs/heads/cassandra-3.11 28b75ba35 -> d9a2cc947
  refs/heads/trunk 17a358c2c -> aa7ba81e2


Copy session properties on cqlsh.py do_login

patch by Andres de la Peña; reviewed by Zhao Yang for CASSANDRA-13847


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

Branch: refs/heads/cassandra-3.0
Commit: 43e2a107072bc86c0e26bc2036a61a9ad600f213
Parents: 717dbe7
Author: Andrés de la Peña <a.penya.gar...@gmail.com>
Authored: Wed Sep 13 17:58:26 2017 +0100
Committer: Andrés de la Peña <a.penya.gar...@gmail.com>
Committed: Wed Sep 13 17:58:26 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/43e2a107/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 1abd7de..d4d9e4f 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 2.2.11
+ * Copy session properties on cqlsh.py do_login (CASSANDRA-13847)
  * Fix load over calculated issue in IndexSummaryRedistribution 
(CASSANDRA-13738)
  * Fix compaction and flush exception not captured (CASSANDRA-13833)
  * Make BatchlogManagerMBean.forceBatchlogReplay() blocking (CASSANDRA-13809)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/43e2a107/bin/cqlsh.py
----------------------------------------------------------------------
diff --git a/bin/cqlsh.py b/bin/cqlsh.py
index a9c5ff1..1f63826 100644
--- a/bin/cqlsh.py
+++ b/bin/cqlsh.py
@@ -2115,6 +2115,12 @@ class Shell(cmd.Cmd):
         else:
             session = conn.connect()
 
+        # Copy session properties
+        session.default_timeout = self.session.default_timeout
+        session.row_factory = self.session.row_factory
+        session.default_consistency_level = 
self.session.default_consistency_level
+        session.max_trace_wait = self.session.max_trace_wait
+
         # Update after we've connected in case we fail to authenticate
         self.conn = conn
         self.auth_provider = auth_provider


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

Reply via email to