diff --git a/source/libs/stream/src/streamState.c b/source/libs/stream/src/streamState.c index 2460da25f43b59ba669c711487ec7a294ab5711c..25f5a3091ca1fea1c1efb3fff32a00902aa5c5ab 100644 --- a/source/libs/stream/src/streamState.c +++ b/source/libs/stream/src/streamState.c @@ -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; }