Skip to content

Commit

Permalink
Fix panic in to_vec (#512)
Browse files Browse the repository at this point in the history
`rewind_vals` only works if there are any values.

Signed-off-by: Moritz Hoffmann <[email protected]>
  • Loading branch information
antiguru authored Jun 11, 2024
1 parent 359d22c commit 4a0f7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trace/cursor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ pub trait Cursor {
{
let mut out = Vec::new();
self.rewind_keys(storage);
self.rewind_vals(storage);
while self.key_valid(storage) {
self.rewind_vals(storage);
while self.val_valid(storage) {
let mut kv_out = Vec::new();
self.map_times(storage, |ts, r| {
Expand Down

0 comments on commit 4a0f7bb

Please sign in to comment.