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:
Hiram R. Chirino 2013-05-20 13:38:56 +00:00
parent 665c3ab33b
commit 3e2dcc1202
1 changed files with 1 additions and 1 deletions

View File

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