Skip to content

Commit eb636d1

Browse files
committed
fix pre-commit
1 parent 1bc08c7 commit eb636d1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public int compareTo(final ComparableVector other) {
164164
final int hashCompare = Integer.compare(this.hashCode, other.hashCode);
165165
if (hashCompare != 0)
166166
return hashCompare;
167-
167+
168168
// If hash codes are equal, perform lexicographical comparison of vector elements
169169
// to maintain the Comparable contract: compareTo == 0 iff equals == true
170170
final int minLength = Math.min(this.vector.length, other.vector.length);
@@ -525,7 +525,7 @@ private void persistVectorsDeltaIncremental(final List<Integer> changedVectorIds
525525
if (availableSpace < entrySize) {
526526
// Page is full, mark it as immutable before creating a new page
527527
pageBuffer.put(OFFSET_MUTABLE, (byte) 0); // mutable = 0 (page is no longer being written to)
528-
528+
529529
lastPageNum++;
530530
currentPage = createNewVectorDataPage(lastPageNum);
531531
pageBuffer = currentPage.getContent();

engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndexCompactor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ private static int findLastImmutablePage(final LSMVectorIndex mainIndex, final i
152152
final BasePage page = database.getTransaction().getPage(new PageId(database, mainIndex.getFileId(), pageIndex),
153153
mainIndex.getPageSize());
154154
final ByteBuffer buffer = page.getContent();
155-
155+
156156
// Read the mutable flag (OFFSET_MUTABLE = 8, after offsetFreeContent and numberOfEntries)
157157
buffer.position(LSMVectorIndex.OFFSET_MUTABLE);
158158
final byte mutable = buffer.get();
159-
159+
160160
if (mutable == 0) {
161161
// Found an immutable page, this is the last one to compact
162162
lastImmutablePage = pageIndex;

0 commit comments

Comments
 (0)