@@ -58,7 +58,7 @@ impl HummockManager {
5858 else {
5959 return Ok ( ( ) ) ;
6060 } ;
61- guard. last_time_travel_snapshot_sst_ids = version. get_sst_ids ( ) ;
61+ guard. last_time_travel_snapshot_sst_ids = version. get_sst_ids ( true ) ;
6262 Ok ( ( ) )
6363 }
6464
@@ -115,8 +115,8 @@ impl HummockManager {
115115 ) = {
116116 (
117117 latest_valid_version. id ,
118- latest_valid_version. get_sst_ids ( ) ,
119- latest_valid_version. get_object_ids ( ) ,
118+ latest_valid_version. get_sst_ids ( true ) ,
119+ latest_valid_version. get_object_ids ( true ) ,
120120 )
121121 } ;
122122 let mut object_ids_to_delete: HashSet < _ > = HashSet :: default ( ) ;
@@ -184,7 +184,7 @@ impl HummockManager {
184184 let delta_to_delete = IncompleteHummockVersionDelta :: from_persisted_protobuf (
185185 & delta_to_delete. version_delta . to_protobuf ( ) ,
186186 ) ;
187- let new_sst_ids = delta_to_delete. newly_added_sst_ids ( ) ;
187+ let new_sst_ids = delta_to_delete. newly_added_sst_ids ( true ) ;
188188 // The SST ids added and then deleted by compaction between the 2 versions.
189189 sst_ids_to_delete. extend ( & new_sst_ids - & latest_valid_version_sst_ids) ;
190190 if sst_ids_to_delete. len ( ) >= delete_sst_batch_size {
@@ -195,7 +195,7 @@ impl HummockManager {
195195 )
196196 . await ?;
197197 }
198- let new_object_ids = delta_to_delete. newly_added_object_ids ( ) ;
198+ let new_object_ids = delta_to_delete. newly_added_object_ids ( true ) ;
199199 object_ids_to_delete. extend ( & new_object_ids - & latest_valid_version_object_ids) ;
200200 }
201201 let mut next_version_sst_ids = latest_valid_version_sst_ids;
@@ -214,7 +214,7 @@ impl HummockManager {
214214 & prev_version. version . to_protobuf ( ) ,
215215 )
216216 } ;
217- let sst_ids = prev_version. get_sst_ids ( ) ;
217+ let sst_ids = prev_version. get_sst_ids ( true ) ;
218218 // The SST ids deleted by compaction between the 2 versions.
219219 sst_ids_to_delete. extend ( & sst_ids - & next_version_sst_ids) ;
220220 if sst_ids_to_delete. len ( ) >= delete_sst_batch_size {
@@ -225,7 +225,7 @@ impl HummockManager {
225225 )
226226 . await ?;
227227 }
228- let new_object_ids = prev_version. get_object_ids ( ) ;
228+ let new_object_ids = prev_version. get_object_ids ( true ) ;
229229 object_ids_to_delete. extend ( & new_object_ids - & latest_valid_version_object_ids) ;
230230 next_version_sst_ids = sst_ids;
231231 }
@@ -379,7 +379,7 @@ impl HummockManager {
379379 ) ;
380380
381381 let mut sst_ids = actual_version
382- . get_sst_ids ( )
382+ . get_sst_ids ( true )
383383 . into_iter ( )
384384 . collect :: < VecDeque < _ > > ( ) ;
385385 let sst_count = sst_ids. len ( ) ;
@@ -495,7 +495,7 @@ impl HummockManager {
495495 // `version_sst_ids` is used to update `last_time_travel_snapshot_sst_ids`.
496496 version_sst_ids = Some (
497497 version
498- . get_sst_infos ( )
498+ . get_sst_infos ( true )
499499 . filter_map ( |s| {
500500 if s. table_ids
501501 . iter ( )
@@ -508,7 +508,7 @@ impl HummockManager {
508508 . collect ( ) ,
509509 ) ;
510510 write_sstable_infos (
511- version. get_sst_infos ( ) . filter ( |s| {
511+ version. get_sst_infos ( true ) . filter ( |s| {
512512 !skip_sst_ids. contains ( & s. sst_id )
513513 && s. table_ids
514514 . iter ( )
@@ -537,7 +537,7 @@ impl HummockManager {
537537 return Ok ( version_sst_ids) ;
538538 }
539539 let written = write_sstable_infos (
540- delta. newly_added_sst_infos ( ) . filter ( |s| {
540+ delta. newly_added_sst_infos ( true ) . filter ( |s| {
541541 !skip_sst_ids. contains ( & s. sst_id )
542542 && s. table_ids
543543 . iter ( )
0 commit comments