1
0
Fork 0

Merge pull request #759 from rqlite/close-bolt

Close BoltDB on Store close
master
Philip O'Toole 4 years ago committed by GitHub
commit e49ed1bd9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,6 +11,7 @@
- [PR #747](https://github.com/rqlite/rqlite/pull/747): Time snapshot, restore, and startup times. - [PR #747](https://github.com/rqlite/rqlite/pull/747): Time snapshot, restore, and startup times.
- [PR #750](https://github.com/rqlite/rqlite/pull/750): Build on-disk databases in-memory first. Fixes [issue #731](https://github.com/rqlite/rqlite/issues/731). - [PR #750](https://github.com/rqlite/rqlite/pull/750): Build on-disk databases in-memory first. Fixes [issue #731](https://github.com/rqlite/rqlite/issues/731).
- [PR #754](https://github.com/rqlite/rqlite/pull/754): Support Noop commands in Raft Log. - [PR #754](https://github.com/rqlite/rqlite/pull/754): Support Noop commands in Raft Log.
- [PR #759](https://github.com/rqlite/rqlite/pull/759): Close BoltDB on Store close.
## 5.9.0 (January 24th 2021) ## 5.9.0 (January 24th 2021)
### New features ### New features

@ -291,6 +291,9 @@ func (s *Store) Close(wait bool) error {
if err := s.db.Close(); err != nil { if err := s.db.Close(); err != nil {
return err return err
} }
if err := s.boltStore.Close(); err != nil {
return err
}
f := s.raft.Shutdown() f := s.raft.Shutdown()
if wait { if wait {
if e := f.(raft.Future); e.Error() != nil { if e := f.(raft.Future); e.Error() != nil {

Loading…
Cancel
Save