提交 0929be69 编写于 作者: wmmhello's avatar wmmhello

fix:seek to offset - 1

上级 3ad486e9
......@@ -2794,7 +2794,7 @@ int32_t tmq_offset_seek(tmq_t* tmq, const char* pTopicName, int32_t vgId, int64_
// update the offset, and then commit to vnode
if (pOffsetInfo->currentOffset.type == TMQ_OFFSET__LOG) {
pOffsetInfo->currentOffset.version = offset;
pOffsetInfo->currentOffset.version = offset - 1;
pOffsetInfo->committedOffset.version = INT64_MIN;
pVg->seekUpdated = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册