This commit is contained in:
Hui Li 2020-08-24 18:18:48 +08:00
parent ee5038ea85
commit c6c3d96cb5
1 changed files with 2 additions and 0 deletions

View File

@ -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 {