thomasmueller commented on code in PR #551:
URL: https://github.com/apache/jackrabbit-oak/pull/551#discussion_r859432762
##########
oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/FlatFileNodeStoreBuilder.java:
##########
@@ -101,7 +102,7 @@ public class FlatFileNodeStoreBuilder {
private long entryCount = 0;
private File flatFileStoreDir;
private final MemoryManager memoryManager;
- private long dumpThreshold = DEFAULT_DUMP_THRESHOLD;
+ private long dumpThreshold =
Integer.getInteger(OAK_INDEXER_DUMP_THRESHOLD_IN_MB,
OAK_INDEXER_DUMP_THRESHOLD_IN_MB_DEFAULT) * FileUtils.ONE_MB;
Review Comment:
That works, and there is no risk of integer overflow, as FileUtils.ONE_MB is
a long.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]