From 38ad8374a0bfdbf1f493ab445d0b8a25886ec180 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Wed, 15 Sep 2021 05:20:38 +0800 Subject: [PATCH] adjust test case --- src/tsdb/src/tsdbFS.c | 2 +- .../dn3_mn1_vnode_noCorruptFile_offline.sim | 27 ++----------------- 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/src/tsdb/src/tsdbFS.c b/src/tsdb/src/tsdbFS.c index 47cfb3115d..2affbc5114 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 19b29bf342..3bb51812f6 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 - - - - - - - - - - - - - - - - - - - - - - - -- GitLab