From d408e72de6b31ec6e44a073beb47c067f09fea78 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Wed, 12 Jul 2006 09:23:19 +0000
Subject: [PATCH] - pre-operation plugins are not called anymore when processing synchronization operations for ADD,DELELTE and MODIFYDN as it was already the case for MODIFY operation This is necessary to make sure that entries use the same unique ID everywhere.
---
opends/src/server/org/opends/server/synchronization/SynchronizationDomain.java | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/synchronization/SynchronizationDomain.java b/opends/src/server/org/opends/server/synchronization/SynchronizationDomain.java
index 455f1df..18b46f8 100644
--- a/opends/src/server/org/opends/server/synchronization/SynchronizationDomain.java
+++ b/opends/src/server/org/opends/server/synchronization/SynchronizationDomain.java
@@ -916,4 +916,20 @@
maxReceiveQueue, maxSendDelay, maxSendQueue,
state);
}
+
+ /**
+ * This methods is called when an error happends while replaying
+ * and operation.
+ * It is necessary because the postOPeration does not always get
+ * called when error or Exceptions happen during the operation replay.
+ *
+ * @param changeNumber the ChangeNumber of the operation with error.
+ */
+ public void updateError(ChangeNumber changeNumber)
+ {
+ synchronized (pendingChanges)
+ {
+ pendingChanges.remove(changeNumber);
+ }
+ }
}
--
Gitblit v1.10.0