mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

gbellato
23.22.2009 26dcd79e2f37afc36a9f9daa07a7aabd5168fc49
Fix 2 small regression introduced recently in the replication code on the trunk

- Replication servers can take up to 10 seconds to stop, this sometimes cause
the ReplicationServerTest to fail.

- The ServerState is repetitively saved in the suffix root entry causing
unnecessary MODIFY request every second.

Those 2 problems are not in the 1.2 branch
2 files modified
6 ■■■■ changed files
opends/src/server/org/opends/server/replication/common/ServerState.java 4 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/DbHandler.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/common/ServerState.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2006-2008 Sun Microsystems, Inc.
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 */
package org.opends.server.replication.common;
@@ -431,7 +431,7 @@
   */
  public void setSaved(boolean b)
  {
    saved = false;
    saved = b;
  }
  /**
opends/src/server/org/opends/server/replication/server/DbHandler.java
@@ -398,7 +398,7 @@
          {
            try
            {
              msgQueue.wait(10000);
              msgQueue.wait(1000);
            } catch (InterruptedException e)
            { }
          }