From c36a6780c20f526df1bc6e1a3a3b71dfa8b9ec3d Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Wed, 28 Feb 2007 14:06:57 +0000
Subject: [PATCH] This set of changes allow to have the schema synchronization working by configuring synchronization for suffix cn=schema (issue 613) .

---
 opends/src/server/org/opends/server/core/Operation.java |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/Operation.java b/opends/src/server/org/opends/server/core/Operation.java
index 5943668..36a7ef3 100644
--- a/opends/src/server/org/opends/server/core/Operation.java
+++ b/opends/src/server/org/opends/server/core/Operation.java
@@ -138,6 +138,10 @@
   // in the response to the client.
   private StringBuilder errorMessage;
 
+  // Indicates whether this operation nneds to be synchronized to
+  // other copies of the data.
+  private boolean dontSynchronizeFlag;
+
 
 
   /**
@@ -730,6 +734,21 @@
   }
 
 
+  /**
+   * Specifies whether this operation must be synchronized to other copies
+   * of the data.
+   *
+   * @param  dontSynchronize  Specifies whether this operation must be
+   *                          synchronized to other copies
+   *                          of the data.
+   */
+  public final void setDontSynchronize(boolean dontSynchronize)
+  {
+    assert debugEnter(CLASS_NAME, "setDontSynchronize",
+                      String.valueOf(dontSynchronize));
+
+    this.dontSynchronizeFlag = dontSynchronize;
+  }
 
   /**
    * Retrieves the entry for the user that should be considered the
@@ -1058,5 +1077,21 @@
    *                 operation should be appended.
    */
   public abstract void toString(StringBuilder buffer);
+
+
+  /**
+   * Indicates whether this operation needs to be synchronized to
+   * other copies of the data.
+   *
+   * @return  <CODE>true</CODE> if this operation don't need to be
+   *                            synchronized, or
+   *          <CODE>false</CODE> if it needs to be synchronized.
+   */
+  public boolean dontSynchronize()
+  {
+    assert debugEnter(CLASS_NAME, "dontSynchronize");
+
+    return dontSynchronizeFlag;
+  }
 }
 

--
Gitblit v1.10.0