Commit d2d1cd43 authored by Steven Allen's avatar Steven Allen

fix(query): use the correct size when skipping

parent 1485448a
......@@ -618,7 +618,11 @@ func (t *txn) query(q dsq.Query) (dsq.Results, error) {
matches := true
check := func(value []byte) error {
e := dsq.Entry{Key: string(item.Key()), Value: value, Size:len(value)}
e := dsq.Entry{
Key: string(item.Key()),
Value: value,
Size: int(item.ValueSize()), // this function is basically free
}
// Only calculate expirations if we need them.
if q.ReturnExpirations {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment