提交 342310a0 编写于 作者: S Shengliang Guan

set code to 0 while syncode > 0

上级 b1023b20
...@@ -967,12 +967,11 @@ static void *sdbWorkerFp(void *param) { ...@@ -967,12 +967,11 @@ static void *sdbWorkerFp(void *param) {
} }
int32_t code = sdbWrite(pOper, pHead, type); int32_t code = sdbWrite(pOper, pHead, type);
if (code < 0) { if (code > 0) code = 0;
if (pOper) if (pOper)
pOper->retCode = code; pOper->retCode = code;
else else
pHead->len = code; // hackway pHead->len = code; // hackway
}
} }
walFsync(tsSdbObj.wal); walFsync(tsSdbObj.wal);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册