ARTEMIS-1842 make sure quorum vote loops exits
The stopped flag used to stop the quorum vote loop needs to be volatile in order to be safely published between threads.
This commit is contained in:
parent
2ddaa0aa86
commit
2eef0fbb10
|
@ -64,7 +64,7 @@ public class SharedNothingBackupQuorum implements Quorum, SessionFailureListener
|
||||||
|
|
||||||
private final NetworkHealthCheck networkHealthCheck;
|
private final NetworkHealthCheck networkHealthCheck;
|
||||||
|
|
||||||
private boolean stopped = false;
|
private volatile boolean stopped = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a safety net in case the live sends the first {@link ReplicationLiveIsStoppingMessage}
|
* This is a safety net in case the live sends the first {@link ReplicationLiveIsStoppingMessage}
|
||||||
|
|
Loading…
Reference in New Issue