slfan1989 commented on PR #10333:
URL: https://github.com/apache/ozone/pull/10333#issuecomment-4528284314

   > How about just use `ConcurrentHashMap#merge`? it's also atomic, so we 
don't need two new functions?
   
   @peterxcli Thanks for the suggestion. Updated the code to use 
`deltaSizes.merge(..., Long::sum)` directly and removed the two helper methods. 
The concurrency test has also been adjusted to cover the `merge()` path.


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