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
  • Loading branch information
Mattia Barbisan committed Jan 31, 2024
1 parent cb5ffd6 commit fe4bada
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 fe4bada

Please sign in to comment.