未验证 提交 f2a969ca 编写于 作者: H Haojun Liao 提交者: GitHub

Merge pull request #22129 from taosdata/fix/TD-25300

fix:[TD-25300]dead loop if getchar return EOF in arm64
......@@ -307,9 +307,6 @@ int32_t tqProcessOffsetCommitReq(STQ* pTq, int64_t sversion, char* msg, int32_t
} else if (pOffset->val.type == TMQ_OFFSET__LOG) {
tqInfo("receive offset commit msg to %s on vgId:%d, offset(type:log) version:%" PRId64, pOffset->subKey, vgId,
pOffset->val.version);
if (pOffset->val.version + 1 == sversion) {
pOffset->val.version += 1;
}
} else {
tqError("invalid commit offset type:%d", pOffset->val.type);
return -1;
......
......@@ -501,7 +501,7 @@ int32_t shellReadCommand(char *command) {
while (1) {
c = taosGetConsoleChar();
if (c == EOF) {
if (c == (char)EOF) {
return c;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册