Skip to content

Commit

Permalink
fix: ChunkBuilder asserts empty size only for debug build (risingwave…
Browse files Browse the repository at this point in the history
…labs#6621)

fix: ChunkBuilder checks non-empty only for debug build

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
fuyufjh and mergify[bot] authored Nov 28, 2022
1 parent 77bb000 commit 80f3096
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stream/src/common/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ pub struct StreamChunkBuilder {

impl Drop for StreamChunkBuilder {
fn drop(&mut self) {
assert_eq!(self.size, 0, "dropping non-empty stream chunk builder");
// Possible to fail in some corner cases but should not in unit tests
debug_assert_eq!(self.size, 0, "dropping non-empty stream chunk builder");
}
}

Expand Down

0 comments on commit 80f3096

Please sign in to comment.