activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1484480 - /activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/MasterLevelDBStore.scala
Date Mon, 20 May 2013 13:38:56 GMT
Author: chirino
Date: Mon May 20 13:38:56 2013
New Revision: 1484480

URL: http://svn.apache.org/r1484480
Log:
No need to sync to the remote machines if a remote sync option is not enabled.

Modified:
    activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/MasterLevelDBStore.scala

Modified: activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/MasterLevelDBStore.scala
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/MasterLevelDBStore.scala?rev=1484480&r1=1484479&r2=1484480&view=diff
==============================================================================
--- activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/MasterLevelDBStore.scala
(original)
+++ activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/MasterLevelDBStore.scala
Mon May 20 13:38:56 2013
@@ -325,7 +325,7 @@ class MasterLevelDBStore extends LevelDB
   var position_sync = new PositionSync(0L, 0)
 
   def wal_sync_to(position:Long):Unit = {
-    if( minSlaveAcks<1 ) {
+    if( minSlaveAcks<1 || (syncToMask & SYNC_TO_REMOTE)==0) {
       return
     }
     val position_sync = new PositionSync(position, minSlaveAcks)



Mime
View raw message