Skip to content

Commit 4937c45

Browse files
authored
Pipe: Fixed the bug that compaction may cause progressIndex lost (apache#16258)
1 parent 5fd2b81 commit 4937c45

File tree

1 file changed

+2
-1
lines changed
  • iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/tsfile

1 file changed

+2
-1
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/tsfile/TsFileResource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,8 @@ public void updateProgressIndex(ProgressIndex progressIndex) {
13871387
}
13881388

13891389
if (!maxProgressIndex.compareAndSet(null, progressIndex)) {
1390-
maxProgressIndex.get().updateToMinimumEqualOrIsAfterProgressIndex(progressIndex);
1390+
maxProgressIndex.updateAndGet(
1391+
index -> index.updateToMinimumEqualOrIsAfterProgressIndex(progressIndex));
13911392
}
13921393
}
13931394

0 commit comments

Comments
 (0)