提交 0ba581ec 编写于 作者: H Hui Li

[add error log for flock]

上级 7038a992
...@@ -159,7 +159,7 @@ static void dnodeCheckDataDirOpenned(char *dir) { ...@@ -159,7 +159,7 @@ static void dnodeCheckDataDirOpenned(char *dir) {
} }
int32_t ret = flock(fd, LOCK_EX | LOCK_NB); int32_t ret = flock(fd, LOCK_EX | LOCK_NB);
if (ret != 0) { if (ret != 0) {
dError("failed to lock file:%s ret:%d, database may be running, quit", filepath, ret); dError("failed to lock file:%s ret:%d[%s], database may be running, quit", filepath, ret, strerror(errno));
close(fd); close(fd);
exit(0); exit(0);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册