diff 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
line wrap: on
line diff
--- a/src/goodjava/lucene/backup/BackupIndexWriter.java	Sun May 10 22:28:13 2020 -0600
+++ b/src/goodjava/lucene/backup/BackupIndexWriter.java	Sun May 10 22:48:15 2020 -0600
@@ -44,7 +44,7 @@
 		super.commit();
 		//sync();
 		if( !isSyncPending ) {
-			new Thread(sync).start();
+			threadPool.execute(sync);
 			isSyncPending = true;
 		}
 	}