mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-16 09:54:55 +00:00
Fix synchronization - leftover from refactoring
This commit is contained in:
parent
1c64a113de
commit
176b4eb1ed
@ -270,7 +270,7 @@ public class NodeEnvironment extends AbstractComponent implements Closeable{
|
||||
* Returns all currently lock shards
|
||||
*/
|
||||
public Set<ShardId> lockedShards() {
|
||||
synchronized (this) {
|
||||
synchronized (shardLocks) {
|
||||
ImmutableSet.Builder<ShardId> builder = ImmutableSet.builder();
|
||||
return builder.addAll(shardLocks.keySet()).build();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user