提交 34efa468 编写于 作者: S slguan

fix issue #288

上级 1b7944bc
...@@ -91,7 +91,7 @@ int vnodeRenewCommitLog(int vnode) { ...@@ -91,7 +91,7 @@ int vnodeRenewCommitLog(int vnode) {
if (VALIDFD(pVnode->logFd)) { if (VALIDFD(pVnode->logFd)) {
munmap(pVnode->pMem, pVnode->mappingSize); munmap(pVnode->pMem, pVnode->mappingSize);
tclose(pVnode->logFd); close(pVnode->logFd);
rename(fileName, oldName); rename(fileName, oldName);
} }
......
...@@ -134,7 +134,7 @@ void taosDeleteStrHashNode(void *handle, char *string, void *pDeleteNode) { ...@@ -134,7 +134,7 @@ void taosDeleteStrHashNode(void *handle, char *string, void *pDeleteNode) {
pNode = pNode->next; pNode = pNode->next;
} }
if (find && pNode) { if (find) {
if (pNode->prev) { if (pNode->prev) {
pNode->prev->next = pNode->next; pNode->prev->next = pNode->next;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册