mirror of https://github.com/apache/cassandra
cqlsh: fix CONSISTENCY output
Patch by Adam Holmberg; reviewed by Tyler Hobbs for CASSANDRA-8507
This commit is contained in:
parent
f1e2fed8dd
commit
c8b4d9568e
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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()]
|
||||
|
|
|
|||
Loading…
Reference in New Issue