diff --git a/src/tsdb/src/tsdbFS.c b/src/tsdb/src/tsdbFS.c index 47cfb3115d0d1863ac24a20a7264ef4d55b18ea9..2affbc5114bdbd3081a23e4a51b505e771188809 100644 --- a/src/tsdb/src/tsdbFS.c +++ b/src/tsdb/src/tsdbFS.c @@ -102,7 +102,7 @@ static int tsdbDecodeDFileSetArray(void **originBuf, void *buf, SArray *pArray, if (pSFSHeader->version == TSDB_FS_VER_0) { uint64_t extendedSize = pSFSHeader->len + nset * TSDB_FILE_MAX * sizeof(TSDB_FVER_TYPE); if (taosTSizeof(*originBuf) < extendedSize) { - int ptrDistance = POINTER_DISTANCE(buf, *originBuf); + size_t ptrDistance = POINTER_DISTANCE(buf, *originBuf); if (tsdbMakeRoom(originBuf, extendedSize) < 0) { terrno = TSDB_CODE_FS_OUT_OF_MEMORY; return -1; diff --git a/tests/script/unique/arbitrator/dn3_mn1_vnode_noCorruptFile_offline.sim b/tests/script/unique/arbitrator/dn3_mn1_vnode_noCorruptFile_offline.sim index 19b29bf342d7c8d045b16111fdc5d2ef9b2039f1..3bb51812f69e16a6d8741cfd51337f1c77d4ee10 100644 --- a/tests/script/unique/arbitrator/dn3_mn1_vnode_noCorruptFile_offline.sim +++ b/tests/script/unique/arbitrator/dn3_mn1_vnode_noCorruptFile_offline.sim @@ -170,8 +170,8 @@ if $system_content != 0 then endi system_content ls ../../../sim/dnode3/data/vnode/vnode2/tsdb/data/ -l | grep "^-" | wc -l | tr -d '\n' -print ---->dnode3 data files: $system_content expect: 3 -if $system_content != 3 then +print ---->dnode3 data files: $system_content expect: 4 +if $system_content != 4 then return -1 endi @@ -409,26 +409,3 @@ print data00 $data00 if $data00 != $totalRows then return -1 endi - - - - - - - - - - - - - - - - - - - - - - -