Remove volatile from global checkpoint listeners (#33636)
This field does not need to be volatile because all accesses are done under a lock. This commit removes the unnecessary volatile modifier from this field.
This commit is contained in:
parent
cfc20825ab
commit
9b8fe85edb
|
@ -63,7 +63,7 @@ public class GlobalCheckpointListeners implements Closeable {
|
||||||
|
|
||||||
// guarded by this
|
// guarded by this
|
||||||
private boolean closed;
|
private boolean closed;
|
||||||
private volatile Map<GlobalCheckpointListener, ScheduledFuture<?>> listeners;
|
private Map<GlobalCheckpointListener, ScheduledFuture<?>> listeners;
|
||||||
private long lastKnownGlobalCheckpoint = UNASSIGNED_SEQ_NO;
|
private long lastKnownGlobalCheckpoint = UNASSIGNED_SEQ_NO;
|
||||||
|
|
||||||
private final ShardId shardId;
|
private final ShardId shardId;
|
||||||
|
|
Loading…
Reference in New Issue