fix write crash

This commit is contained in:
yihaoDeng 2023-04-12 05:50:01 +00:00
parent ed4aaade8c
commit 7e4eefcde1
1 changed files with 1 additions and 0 deletions

View File

@ -355,6 +355,7 @@ int32_t flushSnapshot(SStreamFileState* pFileState, SStreamSnapshot* pSnapshot,
if (streamStateGetBatchSize(batch) > 0) {
code = streamStatePutBatch_rocksdb(pFileState->pFileStore, batch);
}
streamStateClearBatch(batch);
if (flushState) {
const char* taskKey = "streamFileState";