Merge pull request #16441 from taosdata/fix/TD-18665

fix: use sizeof(SBlockL) for aBlockL array's element size
This commit is contained in:
Haojun Liao 2022-08-26 17:49:39 +08:00 committed by GitHub
commit def21870c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ static int32_t getNextRowFromFSLast(void *iter, TSDBROW **ppRow) {
if (code) goto _err;
if (!state->aBlockL) {
state->aBlockL = taosArrayInit(0, sizeof(SBlockIdx));
state->aBlockL = taosArrayInit(0, sizeof(SBlockL));
} else {
taosArrayClear(state->aBlockL);
}