Fix Map Writing

This commit is contained in:
Brian Buller 2022-11-16 16:37:29 -06:00
parent 4c7d152811
commit 2121e5a434
1 changed files with 7 additions and 0 deletions

View File

@ -597,6 +597,13 @@ func (b *DB) SetKeyValueMap(path []string, kvMap map[string][]byte) error {
return err
}
}
// bkt should have the last bucket in the path
for k, v := range kvMap {
err = bkt.Put([]byte(k), v)
if err != nil {
return err
}
}
return nil
})
return err