fix(stream): update the version when open stream tasks.

This commit is contained in:
Haojun Liao 2023-04-15 00:10:08 +08:00
parent 3aa6897738
commit a3b02a80c0
1 changed files with 2 additions and 1 deletions

View File

@ -296,7 +296,8 @@ int32_t streamLoadTasks(SStreamMeta* pMeta, int64_t ver) {
tDecodeStreamTask(&decoder, pTask);
tDecoderClear(&decoder);
if (pMeta->expandFunc(pMeta->ahandle, pTask, -1) < 0) {
// todo set correct initial version.
if (pMeta->expandFunc(pMeta->ahandle, pTask, 0) < 0) {
tdbFree(pKey);
tdbFree(pVal);
tdbTbcClose(pCur);