Skip to content

Commit

Permalink
changed log Fatalf to Printf in badger GC routine to avoid exiting ap…
Browse files Browse the repository at this point in the history
…plication when ErrNoRewrite occurs (#146)

Co-authored-by: Mattia Barbisan <[email protected]>
  • Loading branch information
pricelessrabbit and Mattia Barbisan authored Jan 31, 2024
1 parent cb5ffd6 commit e6a58d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/badger/badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (store *badgerStore) startGC() {
case <-ticker.C:
err := store.db.RunValueLogGC(GCDiscardRatio)
if err != nil && errors.Is(err, badger.ErrNoRewrite) {
log.Fatalf("RunValueLogGC(): %s\n", err.Error())
log.Printf("RunValueLogGC(): %s\n", err.Error())
}
}
}
Expand Down

0 comments on commit e6a58d6

Please sign in to comment.