Skip to content

Commit

Permalink
fix: make record store num_records strictly increasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse-Bakker committed Oct 3, 2023
1 parent 934cd5a commit baae32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dozer-recordstore/src/in_memory/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl ProcessorRecordStore {
}

pub fn num_records(&self) -> usize {
self.inner.read().records.len()
self.inner.read().idx
}

pub fn serialize_slice(&self, start: usize) -> Result<(Vec<u8>, usize), RecordStoreError> {
Expand Down

0 comments on commit baae32b

Please sign in to comment.