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

Nicolas Capponi
22.02.2014 eb1530c0c9eeb3a860e1d601f861eb5e2989538b
OPENDJ-1483: On Windows, problem with changelog's file rotation when running 
replication topology with file-based changelog
OPENDJ-1487: File based changelog : cursors opened when clearing the log

[Note: real merge of all changelog.file package content to be done in one shot in
a future commit]

Log.java :
* Ensure cursors opened on log are temporarily disabled before rotating
the head (to avoid renaming the file while reader are opened on it)
* Allow cursors to be opened on log when performing a clear on the log,
turning them into empty cursors.
1 files modified
6 ■■■■■ changed files
opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/je/ReplicationDbEnv.java 6 ●●●●● patch | view | raw | blame | history
opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/je/ReplicationDbEnv.java
@@ -890,8 +890,10 @@
  private void debug(String message)
  {
    logger.trace("In " + replicationServer.getMonitorInstanceName() + ", "
        + message);
    // replication server may be null in tests
    logger.trace("In %s, %s",
        (replicationServer != null ? replicationServer.getMonitorInstanceName() : "[test]"),
        message);
  }
}