fix: tqOffsetSnapRead success on tq/offset-ver not existing

This commit is contained in:
Benguang Zhao 2023-01-29 15:14:26 +08:00
parent 71ab33ff1f
commit 2f9218b79c
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ int32_t tqOffsetSnapRead(STqOffsetReader* pReader, uint8_t** ppData) {
TdFilePtr pFile = taosOpenFile(fname, TD_FILE_READ);
if (pFile == NULL) {
taosMemoryFree(fname);
return -1;
return 0;
}
int64_t sz = 0;