[ 
https://issues.apache.org/jira/browse/HDDS-8933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen O'Donnell resolved HDDS-8933.
-------------------------------------
    Resolution: Won't Fix

LockManager is being replaced, so closing this.

> 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
>            Priority: Major
>
> 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]

Reply via email to