comparison src/goodjava/lucene/backup/BackupIndexWriter.java @ 1502:8a7b6b32c691

minor threads
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 10 May 2020 22:48:15 -0600
parents e66e3d50b289
children f443542d8650
comparison
equal deleted inserted replaced
1501:e66e3d50b289 1502:8a7b6b32c691
42 42
43 public synchronized void commit() throws IOException { 43 public synchronized void commit() throws IOException {
44 super.commit(); 44 super.commit();
45 //sync(); 45 //sync();
46 if( !isSyncPending ) { 46 if( !isSyncPending ) {
47 new Thread(sync).start(); 47 threadPool.execute(sync);
48 isSyncPending = true; 48 isSyncPending = true;
49 } 49 }
50 } 50 }
51 51
52 public void runSync() { 52 public void runSync() {