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.
| | |
| | | public void notifyChangeNumberEntryAdded(DN baseDN, long changeNumber, String cookieString, UpdateMsg updateMsg) |
| | | throws ChangelogException |
| | | { |
| | | if (!(updateMsg instanceof LDAPUpdateMsg)) |
| | | if (!(updateMsg instanceof LDAPUpdateMsg) |
| | | || changeNumberBasedPersistentSearches.isEmpty()) |
| | | { |
| | | return; |
| | | } |