netudima commented on code in PR #3845:
URL: https://github.com/apache/cassandra/pull/3845#discussion_r1935390614


##########
src/java/org/apache/cassandra/db/Keyspace.java:
##########
@@ -534,7 +534,7 @@ else if (isDeferrable)
                 }
             }
 
-            long acquireTime = currentTimeMillis() - 
mutation.viewLockAcquireStart.get();
+            long acquireTime = currentTimeMillis() - 
mutation.viewLockAcquireStart;

Review Comment:
   the idea of this change is to reduce allocation by removing AtomicLong in 
Mutation object (which we create for each request) and replace it with a 
volatile long + Updater usage



-- 
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-unsubscr...@cassandra.apache.org

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


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

Reply via email to