comparison 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
comparison
equal deleted inserted replaced
1537:f7649ad6e3e7 1538:634f6765830e
56 exec.execute(sync); 56 exec.execute(sync);
57 isSyncPending = true; 57 isSyncPending = true;
58 } 58 }
59 } 59 }
60 60
61 protected void doCheck(SortField sortField) throws IOException { 61 protected boolean doCheck(SortField sortField) throws IOException {
62 super.doCheck(sortField); 62 boolean ok = super.doCheck(sortField);
63 runSyncWithChecksum(); 63 if( ok )
64 runSyncWithChecksum();
65 return ok;
64 } 66 }
65 67
66 public void runSync() { 68 public void runSync() {
67 try { 69 try {
68 exec.submit(sync).get(); 70 exec.submit(sync).get();