From 90e5690df5459c7651174f63b0a994f088f84133 Mon Sep 17 00:00:00 2001 From: slguan Date: Fri, 23 Aug 2019 10:00:48 +0800 Subject: [PATCH] fix the issue #405 --- src/system/src/dnodeSystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/src/dnodeSystem.c b/src/system/src/dnodeSystem.c index 675e758dc6..2fed8556c1 100644 --- a/src/system/src/dnodeSystem.c +++ b/src/system/src/dnodeSystem.c @@ -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); } } -- GitLab