fix: should not memset after realloc
This commit is contained in:
parent
8b7f0f3a15
commit
e377d4e94f
|
@ -1135,7 +1135,6 @@ int32_t colInfoDataEnsureCapacity(SColumnInfoData* pColumn, size_t existRows, ui
|
|||
|
||||
assert(pColumn->info.bytes);
|
||||
tmp = taosMemoryRealloc(pColumn->pData, numOfRows * pColumn->info.bytes);
|
||||
memset(tmp, 0, numOfRows * pColumn->info.bytes);
|
||||
if (tmp == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
|
|
@ -253,16 +253,15 @@ endi
|
|||
|
||||
# The order of data from different sub tables in the super table is random,
|
||||
# so this detection may fail randomly
|
||||
print $data01 $data02 $data03
|
||||
# if $data01 != 10 then
|
||||
# return -1
|
||||
# endi
|
||||
# if $data02 != 2.00000 then
|
||||
# return -1
|
||||
# endi
|
||||
# if $data03 != 3.000000000 then
|
||||
# return -1
|
||||
# endi
|
||||
if $data01 != 10 then
|
||||
return -1
|
||||
endi
|
||||
if $data02 != 2.00000 then
|
||||
return -1
|
||||
endi
|
||||
if $data03 != 3.000000000 then
|
||||
return -1
|
||||
endi
|
||||
|
||||
#print =============== select count(column) from supter table
|
||||
#sql select count(ts), count(c1), count(c2), count(c3) from stb
|
||||
|
@ -511,15 +510,15 @@ if $rows != 9 then
|
|||
endi
|
||||
# The order of data from different sub tables in the super table is random,
|
||||
# so this detection may fail randomly
|
||||
#if $data01 != 10 then
|
||||
# return -1
|
||||
#endi
|
||||
#if $data02 != 2.00000 then
|
||||
# return -1
|
||||
#endi
|
||||
#if $data03 != 3.000000000 then
|
||||
# return -1
|
||||
#endi
|
||||
if $data01 != 10 then
|
||||
return -1
|
||||
endi
|
||||
if $data02 != 2.00000 then
|
||||
return -1
|
||||
endi
|
||||
if $data03 != 3.000000000 then
|
||||
return -1
|
||||
endi
|
||||
|
||||
#print =============== select count(column) from supter table
|
||||
#sql select count(ts), count(c1), count(c2), count(c3) from stb
|
||||
|
|
Loading…
Reference in New Issue