[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/api ...
Manik Surtani
msurtani at jboss.com
Fri Mar 2 07:37:24 EST 2007
User: msurtani
Date: 07/03/02 07:37:24
Modified: tests/functional/org/jboss/cache/api
NodeReplicatedMoveTest.java
Log:
sync commit and rback
Revision Changes Path
1.12 +4 -0 JBossCache/tests/functional/org/jboss/cache/api/NodeReplicatedMoveTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NodeReplicatedMoveTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/NodeReplicatedMoveTest.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- NodeReplicatedMoveTest.java 11 Jan 2007 13:49:05 -0000 1.11
+++ NodeReplicatedMoveTest.java 2 Mar 2007 12:37:23 -0000 1.12
@@ -34,6 +34,8 @@
// start a single cache instance
cache[0] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), false);
+ cache[0].getConfiguration().setSyncCommitPhase(true);
+ cache[0].getConfiguration().setSyncRollbackPhase(true);
cache[0].getConfiguration().setNodeLockingScheme(optimistic ? Configuration.NodeLockingScheme.OPTIMISTIC : Configuration.NodeLockingScheme.PESSIMISTIC);
cache[0].start();
rootNode = cache[0].getRoot();
@@ -41,6 +43,8 @@
// start second instance
cache[1] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), false);
+ cache[1].getConfiguration().setSyncCommitPhase(true);
+ cache[1].getConfiguration().setSyncRollbackPhase(true);
cache[1].getConfiguration().setNodeLockingScheme(optimistic ? Configuration.NodeLockingScheme.OPTIMISTIC : Configuration.NodeLockingScheme.PESSIMISTIC);
cache[1].start();
}
More information about the jboss-cvs-commits
mailing list