Merge remote-tracking branch 'origin/cassandra-2.1' into cassandra-2.1

This commit is contained in:
Jonathan Ellis 2014-03-13 13:06:28 -05:00
commit c342965810
1 changed files with 4 additions and 2 deletions

View File

@ -419,6 +419,8 @@ def cf_prop_val_completer(ctxt, cass):
return ["{'sstable_compression': '"]
if this_opt == 'compaction':
return ["{'class': '"]
if this_opt == 'caching':
return ["{'keys': '"]
if any(this_opt == opt[0] for opt in CqlRuleSet.obsolete_cf_options):
return ["'<obsolete_option>'"]
if this_opt in ('read_repair_chance', 'bloom_filter_fp_chance',
@ -472,9 +474,9 @@ def cf_prop_val_mapval_completer(ctxt, cass):
return [Hint('<option_value>')]
elif opt == 'caching':
if key == 'rows_per_partition':
return [Hint('ALL'), Hint('NONE'), Hint('#rows_per_partition')]
return ["'ALL'", "'NONE'", Hint('#rows_per_partition')]
elif key == 'keys':
return [Hint('ALL'), Hint('NONE')]
return ["'ALL'", "'NONE'"]
return ()
def cf_prop_val_mapender_completer(ctxt, cass):