Don't duplicate root values when root is bucket.
This commit is contained in:
parent
7718e0f038
commit
7f10a81cec
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user