From 679051a2a5aea0a95298083f1840735ea40bc71c Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 12 Mar 2007 16:36:07 +0000
Subject: [PATCH] Provide a mechanism for the server to notify the synchronization service about any schema changes that occur. The synchronization service can already handle schema changes that occur over protocol with the server online, but this set of changes adds support for detecting schema changes made by directly editing the schema configuration files with the server offline, as well as new schema elements added through the add schema file task.
---
opends/src/server/org/opends/server/synchronization/plugin/MultimasterSynchronization.java | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/synchronization/plugin/MultimasterSynchronization.java b/opends/src/server/org/opends/server/synchronization/plugin/MultimasterSynchronization.java
index d11b99f..bce232b 100644
--- a/opends/src/server/org/opends/server/synchronization/plugin/MultimasterSynchronization.java
+++ b/opends/src/server/org/opends/server/synchronization/plugin/MultimasterSynchronization.java
@@ -120,6 +120,17 @@
createNewSynchronizationDomain(domainEntry);
}
}
+
+ /*
+ * If any schema changes were made with the server offline, then handle them
+ * now.
+ */
+ List<Modification> offlineSchemaChanges =
+ DirectoryServer.getOfflineSchemaChanges();
+ if ((offlineSchemaChanges != null) && (! offlineSchemaChanges.isEmpty()))
+ {
+ processSchemaChange(offlineSchemaChanges);
+ }
}
/**
@@ -548,7 +559,7 @@
* applied to the schema.
*
*/
- public static void schemaChangeNotification(List<Modification> modifications)
+ public void processSchemaChange(List<Modification> modifications)
{
SynchronizationDomain domain =
findDomain(DirectoryServer.getSchemaDN(), null);
--
Gitblit v1.10.0