netudima commented on code in PR #3845:
URL: https://github.com/apache/cassandra/pull/3845#discussion_r1935405029
##########
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:
agree, there is a cost: https://shipilev.net/blog/2015/faster-atomic-fu/
but for the current scenario it is not that critical - usually we do the
operation only once per mutation.
--
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]