提交 f81f0978 编写于 作者: wafwerar's avatar wafwerar

fix(os): file path format error

上级 012c5002
......@@ -160,7 +160,12 @@ bool tfsIsSameFile(const STfsFile *pFile1, const STfsFile *pFile2) {
if (pFile1 == NULL || pFile2 == NULL || pFile1->pTfs != pFile2->pTfs) return false;
if (pFile1->did.level != pFile2->did.level) return false;
if (pFile1->did.id != pFile2->did.id) return false;
if (strncmp(pFile1->rname, pFile2->rname, TSDB_FILENAME_LEN) != 0) return false;
char nameBuf1[TMPNAME_LEN], nameBuf2[TMPNAME_LEN];
memset(nameBuf1, 0, TMPNAME_LEN);
memset(nameBuf2, 0, TMPNAME_LEN);
taosRealPath(pFile1->rname, nameBuf1, TMPNAME_LEN);
taosRealPath(pFile2->rname, nameBuf2, TMPNAME_LEN);
if (strncmp(nameBuf1, nameBuf2, TMPNAME_LEN) != 0) return false;
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册