Fix merge segments and keep segments with disabled auto merge

Disabled AutomergeKeepSegments will result in an automatic deletion of the files, so even when the user clicks "keep segments", they will be removed by the automergeKeepSegments flag
This commit is contained in:
ctbrechelper 2018-08-27 11:27:14 +02:00 committed by GitHub
parent 3d1e3e1fcf
commit 4a48f9a844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ public class LocalRecorder implements Recorder {
}
}
LOG.debug("Keep segments: {}", Config.getInstance().getSettings().automergeKeepSegments);
if (!Config.getInstance().getSettings().automergeKeepSegments) {
if (Config.getInstance().getSettings().automerge && !Config.getInstance().getSettings().automergeKeepSegments) {
try {
LOG.debug("Deleting directory {}", recDir);
delete(recDir, mergedFile);