提交 6cbcbd14 编写于 作者: L Liu Jicong

remove assert

上级 1486dd92
......@@ -813,7 +813,7 @@ int walSaveMeta(SWal* pWal) {
// flush to a tmpfile
n = walBuildTmpMetaName(pWal, tmpFnameStr);
if (n < sizeof(tmpFnameStr)) {
if (n >= sizeof(tmpFnameStr)) {
return -1;
}
......@@ -846,7 +846,7 @@ int walSaveMeta(SWal* pWal) {
// rename it
n = walBuildMetaName(pWal, metaVer + 1, fnameStr);
if (n < sizeof(fnameStr)) {
if (n >= sizeof(fnameStr)) {
goto _err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册