smiklosovic commented on code in PR #4355:
URL: https://github.com/apache/cassandra/pull/4355#discussion_r2314340773


##########
src/java/org/apache/cassandra/utils/logging/AbstractVirtualTableAppender.java:
##########
@@ -80,17 +79,21 @@ protected <T> T getVirtualTable(Class<T> vtableClass, 
String tableName)
      * were appended via logging framework sooner than registration of virtual 
tables was done so after they are registered,
      * they would miss logging events happened before being so.
      *
-     * @param vtable    vtable to append to
-     * @param event     event to append to
-     * @param tableName table name of virtual table to append to
+     * @param vtableClass class of vtable to append to
+     * @param vtable      vtable to append to
+     * @param event       event to append to
+     * @param tableName   table name of virtual table to append to
      * @return vtable or when null, found vtable
      */
-    protected AbstractLoggerVirtualTable<?> 
appendToVirtualTable(AbstractLoggerVirtualTable<?> vtable, LoggingEvent event, 
String tableName)
+    protected AbstractLoggerVirtualTable<?> appendToVirtualTable(Class<? 
extends AbstractLoggerVirtualTable<?>> vtableClass,
+                                                                 
AbstractLoggerVirtualTable<?> vtable,
+                                                                 LoggingEvent 
event,
+                                                                 String 
tableName)
     {
         AbstractLoggerVirtualTable<?> foundVtable;
         if (vtable == null)
         {
-            foundVtable = getVirtualTable(SlowQueriesTable.class, tableName);
+            foundVtable = getVirtualTable(vtableClass, tableName);

Review Comment:
   this is actually a bug in the current code



-- 
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