Fix Map Writing
This commit is contained in:
parent
4c7d152811
commit
2121e5a434
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user