fill state
This commit is contained in:
parent
53857abe18
commit
ae117bd7c3
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue