提交 79d9c04a 编写于 作者: L Liu Jicong

fix: check error code

上级 acda336f
......@@ -50,7 +50,7 @@ STqOffsetStore* tqOffsetOpen(STQ* pTq) {
while (1) {
if ((code = taosReadFile(pFile, &head, sizeof(STqOffsetHead))) != sizeof(STqOffsetHead)) {
if (code < 0) {
if (code == 0) {
break;
} else {
ASSERT(0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册