in encryption/src/main/java/org/apache/solr/update/DirectUpdateHandler2Copy.java [160:198]
public DirectUpdateHandler2Copy(SolrCore core, UpdateHandler updateHandler) {
super(core, updateHandler.getUpdateLog());
solrCoreState = core.getSolrCoreState();
UpdateHandlerInfo updateHandlerInfo = core.getSolrConfig().getUpdateHandlerInfo();
int docsUpperBound = updateHandlerInfo.autoCommmitMaxDocs;
int timeUpperBound = updateHandlerInfo.autoCommmitMaxTime;
long fileSizeUpperBound = updateHandlerInfo.autoCommitMaxSizeBytes;
commitTracker =
new CommitTracker(
"Hard",
core,
docsUpperBound,
timeUpperBound,
fileSizeUpperBound,
updateHandlerInfo.openSearcher,
false);
int softCommitDocsUpperBound = updateHandlerInfo.autoSoftCommmitMaxDocs;
int softCommitTimeUpperBound = updateHandlerInfo.autoSoftCommmitMaxTime;
softCommitTracker =
new CommitTracker(
"Soft",
core,
softCommitDocsUpperBound,
softCommitTimeUpperBound,
NO_FILE_SIZE_UPPER_BOUND_PLACEHOLDER,
updateHandlerInfo.openSearcher,
true);
commitWithinSoftCommit = updateHandlerInfo.commitWithinSoftCommit;
UpdateLog existingLog = updateHandler.getUpdateLog();
if (this.ulog != null && this.ulog == existingLog) {
// If we are reusing the existing update log, inform the log that its update handler has
// changed. We do this as late as possible.
this.ulog.init(this, core);
}
}