Skip to content

Commit 7a1f25c

Browse files
committed
add comment
1 parent 18bdd26 commit 7a1f25c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/java/org/apache/cassandra/db/virtual/SlowQueriesTable.java

+3
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ public List<Operation> getMessages(LoggingEvent event)
148148
if (operation.keyspace() == null || operation.table() == null)
149149
continue;
150150

151+
// if cf of an operation is present, take keyspace and table name from it
152+
// instead of having new string instances per operation which might
153+
// take relatively a lot of additional space unnecessarily
151154
Keyspace keyspace = Keyspace.openIfExists(operation.keyspace());
152155
String keyspaceName;
153156
String tableName;

0 commit comments

Comments
 (0)