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…
Reference in New Issue