File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ impl BlockDir {
292292 stats. block_error_count += results. iter ( ) . filter ( |o| o. is_none ( ) ) . count ( ) ;
293293 let len_map: HashMap < BlockHash , usize > = results
294294 . into_iter ( )
295- . filter_map ( std :: convert :: identity ) // keep only Some values
295+ . flatten ( ) // keep only Some values
296296 . collect ( ) ;
297297 Ok ( len_map)
298298 }
Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ const GC_LOCK: &str = "GC_LOCK";
3737
3838#[ derive( Debug ) ]
3939pub struct GarbageCollectionLock {
40+ archive : Archive ,
41+
4042 /// Last band id present when the guard was created. May be None if
4143 /// there are no bands.
4244 band_id : Option < BandId > ,
43-
44- archive : Archive ,
4545}
4646
4747/// Lock on an archive for gc, that excludes backups and gc by other processes.
You can’t perform that action at this time.
0 commit comments