From f5efc93e858375f6b8e44eb1c04918372ae93f1b Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Wed, 09 Dec 2009 09:24:11 +0000
Subject: [PATCH] Fix #4361 ECL - draft mode: temporary fake lastChangeNumber after thousands of updates
---
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
index ef10079..b53f774 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
@@ -54,6 +54,12 @@
private int serverId;
private SortedSet<String> replicationServers;
private long heartbeatInterval = 1000;
+
+ // By default changeTimeHeartbeatInterval is set to 0 in order to disable
+ // this feature and not kill the tests that expect to receive special
+ // messages.
+ private long changeTimeHeartbeatInterval = 0;
+
private IsolationPolicy policy = IsolationPolicy.REJECT_ALL_UPDATES;
// Is assured mode enabled or not ?
@@ -197,7 +203,15 @@
*/
public long getChangetimeHeartbeatInterval()
{
- return 0;
+ return changeTimeHeartbeatInterval;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setChangetimeHeartbeatInterval(long changeTimeHeartbeatInterval)
+ {
+ this.changeTimeHeartbeatInterval = changeTimeHeartbeatInterval;
}
/**
--
Gitblit v1.10.0