From fa1f845a9f9562b1727ecdbd06608c485a3b09b5 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Tue, 23 Sep 2008 12:58:07 +0000
Subject: [PATCH] Fix for 3488 : Replication initialization or quicksetup sometime fails The problem was that after a full update the ReplicationDomain restarts the broker before reloading the serverState and generationID.
---
opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java b/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
index 0518128..a5f6700 100644
--- a/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
+++ b/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
@@ -103,7 +103,8 @@
// of entries to export.
throw(new IOException());
}
- domain.exportLDIFEntry(entryBuffer);
+ if (numEntries<0)
+ domain.exportLDIFEntry(entryBuffer);
numExportedEntries++;
entryBuffer = "";
--
Gitblit v1.10.0