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:
Francesco Nigro 2018-05-02 19:44:11 +02:00 committed by Martyn Taylor
parent 2ddaa0aa86
commit 2eef0fbb10
1 changed files with 1 additions and 1 deletions

View File

@ -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}