Skip to content

Commit

Permalink
fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
st1page committed Sep 21, 2023
1 parent d0b1f4c commit fc6c09b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stream/src/common/log_store/kv_log_store/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ impl<LS: LocalStateStore> LogWriter for KvLogStoreWriter<LS> {
}

async fn write_chunk(&mut self, chunk: StreamChunk) -> LogStoreResult<()> {
assert!(chunk.cardinality() > 0);
if chunk.cardinality() == 0 {
return Ok(());
}
let epoch = self.state_store.epoch();
let start_seq_id = self.seq_id;
self.seq_id += chunk.cardinality() as SeqIdType;
Expand Down

0 comments on commit fc6c09b

Please sign in to comment.