Skip to content

Commit

Permalink
Merge pull request #115 from ipfs/feat/log-gc-rounds
Browse files Browse the repository at this point in the history
Log start and end of GC rounds
  • Loading branch information
Stebalien authored Jun 28, 2021
2 parents 22c5a17 + 9c6ec18 commit 209d604
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ func (d *Datastore) gcOnce() error {
if d.closed {
return ErrClosed
}
log.Info("Running GC round")
defer log.Info("Finished running GC round")
return d.DB.RunValueLogGC(d.gcDiscardRatio)
}

Expand Down

0 comments on commit 209d604

Please sign in to comment.