Lines 177-186
Link Here
|
177 |
* |
177 |
* |
178 |
* @throws IOException |
178 |
* @throws IOException |
179 |
*/ |
179 |
*/ |
180 |
public void reset(boolean reuseExistingFile) throws IOException { |
180 |
public void reset() throws IOException { |
181 |
this.memoryIndex = new MemoryIndex(); |
181 |
this.memoryIndex = new MemoryIndex(); |
182 |
this.diskIndex = new DiskIndex(this.diskIndex.indexFile.getCanonicalPath()); |
182 |
this.diskIndex = new DiskIndex(this.diskIndex.indexFile.getCanonicalPath()); |
183 |
this.diskIndex.initialize(reuseExistingFile); |
183 |
this.diskIndex.initialize(false/*do not reuse the index file*/); |
184 |
} |
184 |
} |
185 |
public void save() throws IOException { |
185 |
public void save() throws IOException { |
186 |
// must own the write lock of the monitor |
186 |
// must own the write lock of the monitor |