cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject git commit: cqlsh: autocomplete fqdn Patch by Aleksey Yeschenko, reviewed by brandonwilliams for CASSANDRA-4423
Date Wed, 26 Sep 2012 15:03:25 GMT
Updated Branches:
  refs/heads/cassandra-1.1 4c4528879 -> d7e4c4a22


cqlsh: autocomplete fqdn
Patch by Aleksey Yeschenko, reviewed by brandonwilliams for
CASSANDRA-4423


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

Branch: refs/heads/cassandra-1.1
Commit: d7e4c4a22a938d6c9b48e810ebb315020dfeea88
Parents: 4c45288
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Wed Sep 26 10:02:33 2012 -0500
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Wed Sep 26 10:02:33 2012 -0500

----------------------------------------------------------------------
 pylib/cqlshlib/cql3handling.py |    5 ++++-
 pylib/cqlshlib/cqlhandling.py  |    5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d7e4c4a2/pylib/cqlshlib/cql3handling.py
----------------------------------------------------------------------
diff --git a/pylib/cqlshlib/cql3handling.py b/pylib/cqlshlib/cql3handling.py
index a081741..20d1eec 100644
--- a/pylib/cqlshlib/cql3handling.py
+++ b/pylib/cqlshlib/cql3handling.py
@@ -490,7 +490,10 @@ def create_ks_opt_completer(ctxt, cass):
         return ['strategy_class =']
     vals = ctxt.get_binding('optval')
     stratclass = dequote_value(vals[stratopt])
-    if stratclass in ('SimpleStrategy', 'OldNetworkTopologyStrategy'):
+    if stratclass in ('SimpleStrategy',
+                      'org.apache.cassandra.locator.SimpleStrategy',
+                      'OldNetworkTopologyStrategy',
+                      'org.apache.cassandra.locator.OldNetworkTopologyStrategy'):
         return ['strategy_options:replication_factor =']
     return [Hint('<strategy_option_name>')]
 

http://git-wip-us.apache.org/repos/asf/cassandra/blob/d7e4c4a2/pylib/cqlshlib/cqlhandling.py
----------------------------------------------------------------------
diff --git a/pylib/cqlshlib/cqlhandling.py b/pylib/cqlshlib/cqlhandling.py
index 715f6f9..a3fb88f 100644
--- a/pylib/cqlshlib/cqlhandling.py
+++ b/pylib/cqlshlib/cqlhandling.py
@@ -768,7 +768,10 @@ def create_ks_opt_completer(ctxt, cass):
         return ['strategy_class =']
     vals = ctxt.get_binding('optval')
     stratclass = dequote_value(vals[stratopt])
-    if stratclass in ('SimpleStrategy', 'OldNetworkTopologyStrategy'):
+    if stratclass in ('SimpleStrategy',
+                      'org.apache.cassandra.locator.SimpleStrategy',
+                      'OldNetworkTopologyStrategy',
+                      'org.apache.cassandra.locator.OldNetworkTopologyStrategy'):
         return ['strategy_options:replication_factor =']
     return [Hint('<strategy_option_name>')]
 


Mime
View raw message