mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-10-05 21:22:39 +02:00
(index) SkipListWriter should not be in APPEND mode
This commit is contained in:
@@ -21,7 +21,8 @@ public class SkipListWriter implements AutoCloseable {
|
||||
private final LongArrayList maxValuesList = new LongArrayList();
|
||||
|
||||
public SkipListWriter(Path documentsFileName) throws IOException {
|
||||
this.documentsChannel = (FileChannel) Files.newByteChannel(documentsFileName, StandardOpenOption.WRITE, StandardOpenOption.CREATE, StandardOpenOption.APPEND);
|
||||
documentsChannel = (FileChannel) Files.newByteChannel(documentsFileName, StandardOpenOption.WRITE, StandardOpenOption.CREATE);
|
||||
documentsChannel.position(documentsChannel.size());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user