1
1
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:
Viktor Lofgren
2025-09-08 17:55:14 +02:00
parent 78246b9a63
commit b53002200c

View File

@@ -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