You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ty...@apache.org on 2014/12/18 01:04:21 UTC
cassandra git commit: cqlsh: fix CONSISTENCY output
Repository: cassandra
Updated Branches:
refs/heads/cassandra-2.1 f1e2fed8d -> c8b4d9568
cqlsh: fix CONSISTENCY output
Patch by Adam Holmberg; reviewed by Tyler Hobbs for CASSANDRA-8507
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c8b4d956
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c8b4d956
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c8b4d956
Branch: refs/heads/cassandra-2.1
Commit: c8b4d9568e866e50c6221475a664b6187437a123
Parents: f1e2fed
Author: Adam Holmberg <Ad...@datastax.com>
Authored: Wed Dec 17 18:03:34 2014 -0600
Committer: Tyler Hobbs <ty...@datastax.com>
Committed: Wed Dec 17 18:03:34 2014 -0600
----------------------------------------------------------------------
CHANGES.txt | 1 +
bin/cqlsh | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/c8b4d956/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index ecb592e..e0652af 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
2.1.3
+ * (cqlsh) Fix output of CONSISTENCY command (CASSANDRA-8507)
* (cqlsh) Fixed the handling of LIST statements (CASSANDRA-8370)
* Make sstablescrub check leveled manifest again (CASSANDRA-8432)
* Check first/last keys in sstable when giving out positions (CASSANDRA-8458)
http://git-wip-us.apache.org/repos/asf/cassandra/blob/c8b4d956/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 033eb37..a714f48 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -1720,7 +1720,7 @@ class Shell(cmd.Cmd):
"""
level = parsed.get_binding('level')
if level is None:
- print 'Current consistency level is %s.' % (self.consistency_level)
+ print 'Current consistency level is %s.' % (cassandra.ConsistencyLevel.value_to_name[self.consistency_level])
return
self.consistency_level = cassandra.ConsistencyLevel.name_to_value[level.upper()]