提交 992d623a 编写于 作者: M Minglei Jin

fix(tsdb/commit2): initialize ctx's maxDelKey with TSKEY_MIN

上级 580b7124
...@@ -467,6 +467,7 @@ static int32_t tsdbOpenCommitter(STsdb *tsdb, SCommitInfo *info, SCommitter2 *co ...@@ -467,6 +467,7 @@ static int32_t tsdbOpenCommitter(STsdb *tsdb, SCommitInfo *info, SCommitter2 *co
committer->compactVersion = INT64_MAX; committer->compactVersion = INT64_MAX;
committer->ctx->cid = tsdbFSAllocEid(tsdb->pFS); committer->ctx->cid = tsdbFSAllocEid(tsdb->pFS);
committer->ctx->now = taosGetTimestampSec(); committer->ctx->now = taosGetTimestampSec();
committer->ctx->maxDelKey = TSKEY_MIN;
committer->ctx->nextKey = tsdb->imem->minKey; committer->ctx->nextKey = tsdb->imem->minKey;
if (tsdb->imem->nDel > 0) { if (tsdb->imem->nDel > 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册