diff --git a/src/system/src/dnodeSystem.c b/src/system/src/dnodeSystem.c index 675e758dc68c8fd84c0d9e704f36f8376882611f..2fed8556c1eb9d2f448ffcd2a9b6825eb78a9cde 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); } }