| Index: filter/txnBuf/ds_txn.go
|
| diff --git a/filter/txnBuf/ds_txn.go b/filter/txnBuf/ds_txn.go
|
| index b04f354f9068050a76db763e9867a9bdec75acf4..bc72eae5d374fd8ab089d53cebfecefe825ddc53 100644
|
| --- a/filter/txnBuf/ds_txn.go
|
| +++ b/filter/txnBuf/ds_txn.go
|
| @@ -58,9 +58,9 @@ func (d *dsTxnBuf) Count(fq *ds.FinalizedQuery) (count int64, err error) {
|
| return
|
| }
|
| }
|
| - err = d.Run(fq, func(_ *ds.Key, _ ds.PropertyMap, _ ds.CursorCB) bool {
|
| + err = d.Run(fq, func(_ *ds.Key, _ ds.PropertyMap, _ ds.CursorCB) error {
|
| count++
|
| - return true
|
| + return nil
|
| })
|
| return
|
| }
|
| @@ -84,14 +84,14 @@ func (d *dsTxnBuf) Run(fq *ds.FinalizedQuery, cb ds.RawRunCB) error {
|
| return d.state.bufDS, d.state.parentDS, d.state.entState.dup()
|
| }()
|
|
|
| - return runMergedQueries(fq, sizes, bufDS, parentDS, func(key *ds.Key, data ds.PropertyMap) bool {
|
| + return runMergedQueries(fq, sizes, bufDS, parentDS, func(key *ds.Key, data ds.PropertyMap) error {
|
| if offset > 0 {
|
| offset--
|
| - return true
|
| + return nil
|
| }
|
| if limitSet {
|
| if limit == 0 {
|
| - return false
|
| + return ds.Stop
|
| }
|
| limit--
|
| }
|
|
|