diff --git a/db.go b/db.go index 4c8c156..d5c53f4 100644 --- a/db.go +++ b/db.go @@ -441,7 +441,8 @@ func (db *DB) init() error { } // Close releases all database resources. -// All transactions must be closed before closing the database. +// It will block waiting for any open transactions to finish +// before closing the database and returning. func (db *DB) Close() error { db.rwlock.Lock() defer db.rwlock.Unlock()