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:
Jason Tedor 2018-09-12 14:38:24 -04:00 committed by GitHub
parent cfc20825ab
commit 9b8fe85edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ public class GlobalCheckpointListeners implements Closeable {
// guarded by this
private boolean closed;
private volatile Map<GlobalCheckpointListener, ScheduledFuture<?>> listeners;
private Map<GlobalCheckpointListener, ScheduledFuture<?>> listeners;
private long lastKnownGlobalCheckpoint = UNASSIGNED_SEQ_NO;
private final ShardId shardId;