fix interface update

This commit is contained in:
yihaoDeng 2024-11-14 19:14:07 +08:00
parent 8bfee53e67
commit 9b2a80b367
1 changed files with 5 additions and 5 deletions

View File

@ -592,7 +592,7 @@ int taosGetDirSize(const char *path, int64_t *size) {
return code = terrno;
}
int32_t nBytes = 0;
char fullPath[512] = {0};
char fullPath[1024] = {0};
int64_t totalSize = 0;
TdDirEntryPtr de = NULL;
@ -610,13 +610,13 @@ int taosGetDirSize(const char *path, int64_t *size) {
if (taosIsDir(fullPath)) {
code = taosGetDirSize(fullPath, &subSize);
if (code != 0) {
taosCloseDir(&pDir);
TAOS_UNUSED(taosCloseDir(&pDir));
return code;
}
} else {
code = taosStatFile(fullPath, &subSize, NULL, NULL);
if (code != 0) {
taosCloseDir(&pDir);
TAOS_UNUSED(taosCloseDir(&pDir));
return code;
}
}