Merge pull request #22480 from taosdata/fix/TD-25819

fix(tsdb/reader): use ENOENT for not found objects
This commit is contained in:
wade zhang 2023-08-18 16:49:54 +08:00 committed by GitHub
commit 87a8fe34ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ int32_t tsdbOpenFile(const char *path, int32_t szPage, int32_t flag, STsdbFD **p
pFD->pFD = taosOpenFile(path, flag);
if (pFD->pFD == NULL) {
code = TAOS_SYSTEM_ERROR(errno);
code = TAOS_SYSTEM_ERROR(ENOENT);
taosMemoryFree(pFD);
goto _exit;
}