dcapwell commented on a change in pull request #1180:
URL: https://github.com/apache/cassandra/pull/1180#discussion_r702146805



##########
File path: src/java/org/apache/cassandra/db/ReadCommand.java
##########
@@ -86,6 +88,10 @@
     protected static final Logger logger = 
LoggerFactory.getLogger(ReadCommand.class);
     public static final IVersionedSerializer<ReadCommand> serializer = new 
Serializer();
 
+    // Expose the active command running so transitive calls can lookup this 
command.
+    // This is useful for a few reasons, but mainly because the CQL query is 
here.
+    private static final FastThreadLocal<ReadCommand> COMMAND = new 
FastThreadLocal<>();

Review comment:
       passing the information through is a huge change as it needs to be 
passed all over the place.  We also need to handle the cases called outside of 
a ReadCommand....




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