Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-ds-badger
Commits
d2d1cd43
Commit
d2d1cd43
authored
Dec 02, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(query): use the correct size when skipping
parent
1485448a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
datastore.go
datastore.go
+5
-1
No files found.
datastore.go
View file @
d2d1cd43
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment