comparison src/goodjava/lucene/logging/LoggingIndexWriter.java @ 1512:31b543826ca9

lucene.backup login
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 23 May 2020 19:01:57 -0600
parents 86c5e7000ecf
children 3bd4d7963456
comparison
equal deleted inserted replaced
1511:fb5be0e8ca54 1512:31b543826ca9
170 deleteUnusedFiles(logs,index); 170 deleteUnusedFiles(logs,index);
171 //logger.info("writeIndex "+logs.toString()); 171 //logger.info("writeIndex "+logs.toString());
172 } 172 }
173 173
174 private void mergeLogs() throws IOException { 174 private void mergeLogs() throws IOException {
175 logger.info("merge"); 175 //logger.info("merge");
176 LogFile first = logs.get(0); 176 LogFile first = logs.get(0);
177 LogFile second = logs.get(1); 177 LogFile second = logs.get(1);
178 long lastTime = second.file.lastModified(); 178 long lastTime = second.file.lastModified();
179 File dirFile = new File(logDir,"merge"); 179 File dirFile = new File(logDir,"merge");
180 if( dirFile.exists() ) 180 if( dirFile.exists() )