fix(stream/state): switch tdb rollback on to restore from journals

This commit is contained in:
Minglei Jin 2023-02-07 15:11:22 +08:00
parent 25f7ac7991
commit f4a60a4364
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ SStreamState* streamStateOpen(char* path, SStreamTask* pTask, bool specPath, int
memset(statePath, 0, 1024);
tstrncpy(statePath, path, 1024);
}
if (tdbOpen(statePath, szPage, pages, &pState->pTdbState->db, 0) < 0) {
if (tdbOpen(statePath, szPage, pages, &pState->pTdbState->db, 1) < 0) {
goto _err;
}