Fix Map Writing

This commit is contained in:
Brian Buller 2022-11-16 16:37:29 -06:00
parent 4c7d152811
commit 2121e5a434

View File

@ -597,6 +597,13 @@ func (b *DB) SetKeyValueMap(path []string, kvMap map[string][]byte) error {
return err 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 nil
}) })
return err return err