fill state

This commit is contained in:
liuyao 2023-04-19 09:14:36 +08:00
parent 53857abe18
commit ae117bd7c3
1 changed files with 4 additions and 2 deletions

View File

@ -256,8 +256,10 @@ int32_t streamStateBegin(SStreamState* pState) {
int32_t streamStateCommit(SStreamState* pState) { int32_t streamStateCommit(SStreamState* pState) {
#ifdef USE_ROCKSDB #ifdef USE_ROCKSDB
SStreamSnapshot* pShot = getSnapshot(pState->pFileState); if (pState->pFileState) {
flushSnapshot(pState->pFileState, pShot, true); SStreamSnapshot* pShot = getSnapshot(pState->pFileState);
flushSnapshot(pState->pFileState, pShot, true);
}
return 0; return 0;
#else #else
if (tdbCommit(pState->pTdbState->db, pState->pTdbState->txn) < 0) { if (tdbCommit(pState->pTdbState->db, pState->pTdbState->txn) < 0) {