Unlimited value is supported for dirty pages limit. Part 2.
@@ -2599,6 +2599,7 @@ public final class OWOWCache extends OAbstractWriteCache implements OWriteCache,
convertSharedDirtyPagesToLocal();
}
+ if (dirtyPagesLimit > 0) {
Map.Entry<Long, TreeSet<PageKey>> firstSegment = localDirtyPagesBySegment.firstEntry();
while (firstSegment != null && writeCacheSize.get() >= dirtyPagesLimit) {
final long firstSegmentIndex = firstSegment.getKey();
@@ -2607,6 +2608,7 @@ public final class OWOWCache extends OAbstractWriteCache implements OWriteCache,
convertSharedDirtyPagesToLocal();
}
}
+ }
} catch (final Error | Exception t) {
OLogManager.instance().error(this, "Exception during data flush", t);
OWOWCache.this.fireBackgroundDataFlushExceptionEvent(t);
