smiklosovic commented on a change in pull request #1229:
URL: https://github.com/apache/cassandra/pull/1229#discussion_r726064566



##########
File path: src/java/org/apache/cassandra/tracing/TraceKeyspace.java
##########
@@ -102,7 +103,7 @@ private static TableMetadata parse(String table, String 
description, String cql)
 
     public static KeyspaceMetadata metadata()
     {
-        return KeyspaceMetadata.create(SchemaConstants.TRACE_KEYSPACE_NAME, 
KeyspaceParams.simple(2), Tables.of(Sessions, Events));
+        return KeyspaceMetadata.create(SchemaConstants.TRACE_KEYSPACE_NAME, 
KeyspaceParams.simple(Math.max(2, DatabaseDescriptor.getDefaultKeyspaceRF())), 
Tables.of(Sessions, Events));

Review comment:
       please extract to constant




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to