File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ pub type ProtectCb = Arc<
154
154
> ;
155
155
156
156
pub async fn gc_run_once ( store : & Store , live : & mut HashSet < Hash > ) -> crate :: api:: Result < ( ) > {
157
+ debug ! ( externally_protected = live. len( ) , "gc: start" ) ;
157
158
{
158
159
store. clear_protected ( ) . await ?;
159
160
let mut stream = gc_mark ( store, live) ;
@@ -172,6 +173,7 @@ pub async fn gc_run_once(store: &Store, live: &mut HashSet<Hash>) -> crate::api:
172
173
}
173
174
}
174
175
}
176
+ debug ! ( total_protected = live. len( ) , "gc: sweep" ) ;
175
177
{
176
178
let mut stream = gc_sweep ( store, live) ;
177
179
while let Some ( ev) = stream. next ( ) . await {
@@ -189,11 +191,13 @@ pub async fn gc_run_once(store: &Store, live: &mut HashSet<Hash>) -> crate::api:
189
191
}
190
192
}
191
193
}
194
+ debug ! ( "gc: done" ) ;
192
195
193
196
Ok ( ( ) )
194
197
}
195
198
196
199
pub async fn run_gc ( store : Store , config : GcConfig ) {
200
+ debug ! ( "gc enabled with interval {:?}" , config. interval) ;
197
201
let mut live = HashSet :: new ( ) ;
198
202
loop {
199
203
live. clear ( ) ;
You can’t perform that action at this time.
0 commit comments