Skip to content

Commit

Permalink
add signal to shutdown badger periodic sync
Browse files Browse the repository at this point in the history
  • Loading branch information
DocSavage committed Feb 4, 2024
1 parent 2ae9818 commit e450d0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/badger/badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ type BadgerDB struct {
func (db *BadgerDB) Close() {
if db != nil {
if db.bdp != nil {
db.stopSyncCh <- true
db.bdp.Close()
dvid.Infof("Closed Badger DB @ %s\n", db.directory)
}
Expand Down

0 comments on commit e450d0a

Please sign in to comment.