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