MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / rangeBucket

Method rangeBucket

pending.go:146–156  ·  view source on GitHub ↗

rangeBucket input a range handler function f and call it with every bucket in pendingBucketList

(f func(bucket *core.Bucket) error)

Source from the content-addressed store, hash-verified

144
145// rangeBucket input a range handler function f and call it with every bucket in pendingBucketList
146func (p pendingBucketList) rangeBucket(f func(bucket *core.Bucket) error) error {
147 for _, bucketsInDs := range p {
148 for _, bucket := range bucketsInDs {
149 err := f(bucket)
150 if err != nil {
151 return err
152 }
153 }
154 }
155 return nil
156}
157
158// toList collect all the entries in pendingEntryList to a list.
159func (pending *pendingEntryList) toList() []*core.Entry {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected