mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +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
|
* Returns all currently lock shards
|
||||||
*/
|
*/
|
||||||
public Set<ShardId> lockedShards() {
|
public Set<ShardId> lockedShards() {
|
||||||
synchronized (this) {
|
synchronized (shardLocks) {
|
||||||
ImmutableSet.Builder<ShardId> builder = ImmutableSet.builder();
|
ImmutableSet.Builder<ShardId> builder = ImmutableSet.builder();
|
||||||
return builder.addAll(shardLocks.keySet()).build();
|
return builder.addAll(shardLocks.keySet()).build();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user