diff src/goodjava/lucene/backup/BackupIndexWriter.java @ 1538:634f6765830e

use goodjava/lucene/logging
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 07 Aug 2020 21:42:16 -0600
parents 31b543826ca9
children 736ec76bbf42
line wrap: on
line diff
--- a/src/goodjava/lucene/backup/BackupIndexWriter.java	Fri Aug 07 13:38:25 2020 -0600
+++ b/src/goodjava/lucene/backup/BackupIndexWriter.java	Fri Aug 07 21:42:16 2020 -0600
@@ -58,9 +58,11 @@
 		}
 	}
 
-	protected void doCheck(SortField sortField) throws IOException {
-		super.doCheck(sortField);
-		runSyncWithChecksum();
+	protected boolean doCheck(SortField sortField) throws IOException {
+		boolean ok = super.doCheck(sortField);
+		if( ok )
+			runSyncWithChecksum();
+		return ok;
 	}
 
 	public void runSync() {