mirror of https://github.com/etcd-io/bbolt.git
Breaking the long line
parent
fafe4b70b5
commit
584b1a3dba
3
db.go
3
db.go
|
@ -441,7 +441,8 @@ func (db *DB) init() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close releases all database resources.
|
// Close releases all database resources.
|
||||||
// It will block waiting for any open transactions to finish before closing the database and returning.
|
// It will block waiting for any open transactions to finish
|
||||||
|
// before closing the database and returning.
|
||||||
func (db *DB) Close() error {
|
func (db *DB) Close() error {
|
||||||
db.rwlock.Lock()
|
db.rwlock.Lock()
|
||||||
defer db.rwlock.Unlock()
|
defer db.rwlock.Unlock()
|
||||||
|
|
Loading…
Reference in New Issue