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

Jean-Noel Rouvignac
11.56.2015 eb04697622586d9b25b7205360a966ea1d345b9b
OPENDJ-2133 changelogDb purge cannot keep up with sustained modification load

Code review: Matthew Swift

ChangelogBackend.java:
In notifyChangeNumberEntryAdded(), exit immediately when there are no persistent searches. This avoids creating an entry that will be immediately discarded.
1 files modified
3 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/backends/ChangelogBackend.java 3 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/backends/ChangelogBackend.java
@@ -462,7 +462,8 @@
  public void notifyChangeNumberEntryAdded(DN baseDN, long changeNumber, String cookieString, UpdateMsg updateMsg)
      throws ChangelogException
  {
    if (!(updateMsg instanceof LDAPUpdateMsg))
    if (!(updateMsg instanceof LDAPUpdateMsg)
        || changeNumberBasedPersistentSearches.isEmpty())
    {
      return;
    }