File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
turbopack/crates/turbo-persistence/src Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -571,12 +571,14 @@ impl TurboPersistence {
571
571
) ?;
572
572
}
573
573
574
- self . commit (
575
- new_sst_files,
576
- Vec :: new ( ) ,
577
- indicies_to_delete,
578
- * sequence_number. get_mut ( ) ,
579
- ) ?;
574
+ if !new_sst_files. is_empty ( ) {
575
+ self . commit (
576
+ new_sst_files,
577
+ Vec :: new ( ) ,
578
+ indicies_to_delete,
579
+ * sequence_number. get_mut ( ) ,
580
+ ) ?;
581
+ }
580
582
581
583
self . active_write_operation . store ( false , Ordering :: Release ) ;
582
584
@@ -592,9 +594,9 @@ impl TurboPersistence {
592
594
indicies_to_delete : & mut Vec < usize > ,
593
595
max_coverage : f32 ,
594
596
max_merge_sequence : usize ,
595
- ) -> Result < bool > {
597
+ ) -> Result < ( ) > {
596
598
if static_sorted_files. is_empty ( ) {
597
- return Ok ( false ) ;
599
+ return Ok ( ( ) ) ;
598
600
}
599
601
600
602
struct SstWithRange {
@@ -869,7 +871,7 @@ impl TurboPersistence {
869
871
indicies_to_delete. append ( & mut inner_indicies_to_delete) ;
870
872
}
871
873
872
- Ok ( true )
874
+ Ok ( ( ) )
873
875
}
874
876
875
877
/// Get a value from the database. Returns None if the key is not found. The returned value
You can’t perform that action at this time.
0 commit comments