mirror of https://github.com/apache/activemq.git
No need to sync to the remote machines if a remote sync option is not enabled.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1484480 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
665c3ab33b
commit
3e2dcc1202
|
@ -325,7 +325,7 @@ class MasterLevelDBStore extends LevelDBStore with ReplicatedLevelDBStoreTrait {
|
||||||
var position_sync = new PositionSync(0L, 0)
|
var position_sync = new PositionSync(0L, 0)
|
||||||
|
|
||||||
def wal_sync_to(position:Long):Unit = {
|
def wal_sync_to(position:Long):Unit = {
|
||||||
if( minSlaveAcks<1 ) {
|
if( minSlaveAcks<1 || (syncToMask & SYNC_TO_REMOTE)==0) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
val position_sync = new PositionSync(position, minSlaveAcks)
|
val position_sync = new PositionSync(position, minSlaveAcks)
|
||||||
|
|
Loading…
Reference in New Issue