final long oldCacheMaxSize = cacheMaxSize;
cacheMaxSize = (int) Math.ceil(cacheMaxSize * (1 + OGlobalConfiguration.SERVER_CACHE_INCREASE_STEP.getValueAsFloat()));
OLogManager.instance().warn(this, "Write cache size is increased from %d to %d", oldCacheMaxSize, cacheMaxSize);
} else {
throw new OAllCacheEntriesAreUsedException("All records in write cache are used!");
}
}
} catch (Exception e) {
OLogManager.instance().error(this, "Exception during data flush.", e);
}