Skip to content

Commit

Permalink
[fix] fix thread safety problem, ensure the visibility of changingEms…
Browse files Browse the repository at this point in the history
…emble
  • Loading branch information
graysonzeng committed Jan 11, 2024
1 parent d8c1f1a commit 7cdab79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private enum HandleState {
public static final long INVALID_LEDGER_ID = -0xABCDABCDL;

final Object metadataLock = new Object();
boolean changingEnsemble = false;
volatile boolean changingEnsemble = false;
final AtomicInteger numEnsembleChanges = new AtomicInteger(0);
Queue<PendingAddOp> pendingAddOps;
ExplicitLacFlushPolicy explicitLacFlushPolicy;
Expand Down

0 comments on commit 7cdab79

Please sign in to comment.