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

set code to 0 while syncode > 0

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