Skip to content

Commit 209d604

Browse files
authored
Merge pull request #115 from ipfs/feat/log-gc-rounds
Log start and end of GC rounds
2 parents 22c5a17 + 9c6ec18 commit 209d604

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

datastore.go

+2
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ func (d *Datastore) gcOnce() error {
437437
if d.closed {
438438
return ErrClosed
439439
}
440+
log.Info("Running GC round")
441+
defer log.Info("Finished running GC round")
440442
return d.DB.RunValueLogGC(d.gcDiscardRatio)
441443
}
442444

0 commit comments

Comments
 (0)