Don't duplicate root values when root is bucket.

This commit is contained in:
Brian Buller 2021-05-31 10:03:53 -05:00
parent 7718e0f038
commit 7f10a81cec
1 changed files with 1 additions and 0 deletions

View File

@ -280,6 +280,7 @@ func (bd *BoltDB) refreshDatabase() *BoltDB {
return err
})
if err != nil {
memBolt = new(BoltDB)
// Check if there are key/values directly in the root
bb, err := readBucket(tx.Cursor().Bucket())
if err == nil {