Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion turbopack/crates/turbo-persistence/src/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl<K: StoreKey, const SIZE_SHIFT: usize> Collector<K, SIZE_SHIFT> {
/// Sorts the entries and returns them along with the total key and value sizes. This doesn't
/// clear the entries.
pub fn sorted(&mut self) -> (&[CollectorEntry<K>], usize, usize) {
self.entries.sort_by(|a, b| a.key.cmp(&b.key));
self.entries.sort_unstable_by(|a, b| a.key.cmp(&b.key));
(&self.entries, self.total_key_size, self.total_value_size)
}

Expand Down
2 changes: 1 addition & 1 deletion turbopack/crates/turbo-persistence/src/write_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ impl<K: StoreKey + Send + Sync, const FAMILIES: usize> WriteBatch<K, FAMILIES> {

shared_error.into_inner()?;
let seq = self.current_sequence_number.load(Ordering::SeqCst);
new_sst_files.sort_by_key(|(seq, _)| *seq);
new_sst_files.sort_unstable_by_key(|(seq, _)| *seq);
Ok(FinishResult {
sequence_number: seq,
new_sst_files,
Expand Down
Loading