fix the issue #405

This commit is contained in:
slguan 2019-08-23 10:00:48 +08:00
parent 06b7af06a2
commit 90e5690df5
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ void dnodeCheckDbRunning(const char* dir) {
int fd = open(filepath, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO);
int ret = flock(fd, LOCK_EX | LOCK_NB);
if (ret != 0) {
dError("failed to lock file:%s ret:%d, database may be running, quit", ret, filepath);
dError("failed to lock file:%s ret:%d, database may be running, quit", filepath, ret);
exit(0);
}
}