Skip to content

Commit 9c6ec18

Browse files
committed
Log start and end of GC rounds
This adds log messages when badger GC starts and ends.
1 parent 22c5a17 commit 9c6ec18

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)