Stephen O'Donnell created HDDS-8933:
---------------------------------------
Summary: LockManager - avoid extra map lookup when releasing lock
Key: HDDS-8933
URL: https://issues.apache.org/jira/browse/HDDS-8933
Project: Apache Ozone
Issue Type: Improvement
Reporter: Stephen O'Donnell
Assignee: Stephen O'Donnell
The `getLockForReleasing()` method uses a pattern of:
if (map.container(key) {
return map.get(key)
}
We can avoid the lookup in the map from the container call.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]