tsdb/reader: use ENOENT for not found objects

This commit is contained in:
Minglei Jin 2023-08-18 15:43:08 +08:00
parent 10872240ae
commit 73ae493fa7
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;
}