Merge branch 'cassandra-3.0' into cassandra-3.11

This commit is contained in:
Dinesh A. Joshi 2020-04-17 21:54:48 -07:00
commit 9b940a511c
2 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,7 @@
Merged from 3.0:
=======
3.0.21
* cqlsh return non-zero status when STDIN CQL fails (CASSANDRA-15623)
* Don't skip sstables in slice queries based only on local min/max/deletion timestamp (CASSANDRA-15690)
* Memtable memory allocations may deadlock (CASSANDRA-15367)
* Run evictFromMembership in GossipStage (CASSANDRA-15592)

View File

@ -547,6 +547,10 @@ class Shell(cmd.Cmd):
self.statement_error = False
self.single_statement = single_statement
@property
def batch_mode(self):
return not self.tty
@property
def is_using_utf8(self):
# utf8 encodings from https://docs.python.org/{2,3}/library/codecs.html
@ -2430,8 +2434,8 @@ def main(options, hostname, port):
shell.cmdloop()
save_history()
batch_mode = options.file or options.execute
if batch_mode and shell.statement_error:
if shell.batch_mode and shell.statement_error:
sys.exit(2)