提交 38ad8374 编写于 作者: C Cary Xu

adjust test case

上级 d395ba11
...@@ -102,7 +102,7 @@ static int tsdbDecodeDFileSetArray(void **originBuf, void *buf, SArray *pArray, ...@@ -102,7 +102,7 @@ static int tsdbDecodeDFileSetArray(void **originBuf, void *buf, SArray *pArray,
if (pSFSHeader->version == TSDB_FS_VER_0) { if (pSFSHeader->version == TSDB_FS_VER_0) {
uint64_t extendedSize = pSFSHeader->len + nset * TSDB_FILE_MAX * sizeof(TSDB_FVER_TYPE); uint64_t extendedSize = pSFSHeader->len + nset * TSDB_FILE_MAX * sizeof(TSDB_FVER_TYPE);
if (taosTSizeof(*originBuf) < extendedSize) { if (taosTSizeof(*originBuf) < extendedSize) {
int ptrDistance = POINTER_DISTANCE(buf, *originBuf); size_t ptrDistance = POINTER_DISTANCE(buf, *originBuf);
if (tsdbMakeRoom(originBuf, extendedSize) < 0) { if (tsdbMakeRoom(originBuf, extendedSize) < 0) {
terrno = TSDB_CODE_FS_OUT_OF_MEMORY; terrno = TSDB_CODE_FS_OUT_OF_MEMORY;
return -1; return -1;
......
...@@ -170,8 +170,8 @@ if $system_content != 0 then ...@@ -170,8 +170,8 @@ if $system_content != 0 then
endi endi
system_content ls ../../../sim/dnode3/data/vnode/vnode2/tsdb/data/ -l | grep "^-" | wc -l | tr -d '\n' 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 print ---->dnode3 data files: $system_content expect: 4
if $system_content != 3 then if $system_content != 4 then
return -1 return -1
endi endi
...@@ -409,26 +409,3 @@ print data00 $data00 ...@@ -409,26 +409,3 @@ print data00 $data00
if $data00 != $totalRows then if $data00 != $totalRows then
return -1 return -1
endi endi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册