diff src/goodjava/lucene/backup/Backup.java @ 1500:f01abd6d5858

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 10 May 2020 13:06:11 -0600
parents 22e15cf73040
children e66e3d50b289
line wrap: on
line diff
--- a/src/goodjava/lucene/backup/Backup.java	Sat May 09 23:14:13 2020 -0600
+++ b/src/goodjava/lucene/backup/Backup.java	Sun May 10 13:06:11 2020 -0600
@@ -21,9 +21,11 @@
 	private static final Logger logger = LoggerFactory.getLogger(Backup.class);
 
 	private final File dir;
+	private final File index;
 
 	Backup(File dir) {
 		this.dir = dir;
+		this.index = new File(dir,"index");
 	}
 
 	synchronized void handle(RpcServer rpc,RpcCall call) {
@@ -91,7 +93,6 @@
 				logs.add( new LogFile(f) );
 			}
 			if( complete ) {
-				File index = new File(dir,"index");
 				LoggingIndexWriter.writeIndex(logs,index);
 				logger.info("write index");
 			}