You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2022/05/16 17:29:43 UTC

[GitHub] [cassandra] bschoening commented on a diff in pull request #1622: CASSANDRA-17577 add new CQLSH command SHOW REPLICAS

bschoening commented on code in PR #1622:
URL: https://github.com/apache/cassandra/pull/1622#discussion_r873985447


##########
bin/cqlsh.py:
##########
@@ -600,6 +601,12 @@ def show_version(self):
     def show_session(self, sessionid, partial_session=False):
         print_trace_session(self, self.session, sessionid, partial_session)
 
+    def show_replicas(self, token, keyspace=None):
+        ks = self.current_keyspace if keyspace is None else keyspace
+        nodes = self.conn.metadata.token_map.get_replicas(self.current_keyspace, Murmur3Token(token))

Review Comment:
   Yes, I'll fix that. Thanks!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org