From c6c3d96cb50924e4c4cff0157079fbe5639c7781 Mon Sep 17 00:00:00 2001 From: Hui Li Date: Mon, 24 Aug 2020 18:18:48 +0800 Subject: [PATCH] [TD-880] --- src/os/src/detail/osDir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/src/detail/osDir.c b/src/os/src/detail/osDir.c index 2f82d8866c..7a537cdfea 100644 --- a/src/os/src/detail/osDir.c +++ b/src/os/src/detail/osDir.c @@ -56,6 +56,8 @@ void taosRename(char* oldName, char *newName) { return; } + // if newName in not empty, rename return fail. + // the newName must be empty or does not exist if (rename(oldName, newName)) { uError("%s is modify to %s fail, reason:%s", oldName, newName, strerror(errno)); } else { -- GitLab