This is an automated email from the ASF dual-hosted git repository.

heiming pushed a commit to branch tiered_storage
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/tiered_storage by this push:
     new e3755ead2f fix
e3755ead2f is described below

commit e3755ead2fafb5ae3f31516b964e5928b9ca74aa
Author: HeimingZ <[email protected]>
AuthorDate: Wed May 17 15:39:21 2023 +0800

    fix
---
 .../src/main/java/org/apache/iotdb/os/cache/OSFileCacheValue.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/object-storage/src/main/java/org/apache/iotdb/os/cache/OSFileCacheValue.java 
b/object-storage/src/main/java/org/apache/iotdb/os/cache/OSFileCacheValue.java
index 281fbd228a..ff8c985f6f 100644
--- 
a/object-storage/src/main/java/org/apache/iotdb/os/cache/OSFileCacheValue.java
+++ 
b/object-storage/src/main/java/org/apache/iotdb/os/cache/OSFileCacheValue.java
@@ -92,7 +92,7 @@ public class OSFileCacheValue {
     if (positionInTsFile < startPositionInTsFile || positionInTsFile >= 
endPositionInTsFile) {
       return -1;
     }
-    return metaSize + (positionInTsFile - startPositionInTsFile);
+    return startPositionInCacheFile + metaSize + (positionInTsFile - 
startPositionInTsFile);
   }
 
   /** Mark this value should be deleted, delete this value when no one is 
reading it. */

Reply via email to