forked from TrueCloudLab/frostfs-node
[#381] go.mod: Update bbolt
Adopt new `ForEachBucket` function where possible. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
7eb8fa6350
commit
ff570847a4
5 changed files with 6 additions and 12 deletions
|
@ -315,12 +315,8 @@ func selectOutsideFKBT(
|
|||
|
||||
bktExcl := tx.Bucket(name)
|
||||
if bktExcl != nil {
|
||||
_ = bktExcl.ForEach(func(k, _ []byte) error {
|
||||
_ = bktExcl.ForEachBucket(func(k []byte) error {
|
||||
exclBktLeaf := bktExcl.Bucket(k)
|
||||
if exclBktLeaf == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
return exclBktLeaf.ForEach(func(k, _ []byte) error {
|
||||
mExcl[string(k)] = struct{}{}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue