-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Returning bytesRead per query as part of searchResult #142
Returning bytesRead per query as part of searchResult #142
Conversation
read.go
Outdated
@@ -22,7 +22,7 @@ func (s *SegmentBase) getDocStoredMetaAndCompressed(docNum uint64) ([]byte, []by | |||
meta := s.mem[storedOffset+n : storedOffset+n+metaLen] | |||
data := s.mem[storedOffset+n+metaLen : storedOffset+n+metaLen+dataLen] | |||
|
|||
s.incrementBytesRead(metaLen + dataLen) | |||
// s.incrementBytesRead(metaLen + dataLen) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the commented code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah resolving them, my bad.
read.go
Outdated
@@ -41,7 +41,7 @@ func (s *SegmentBase) getDocStoredOffsets(docNum uint64) ( | |||
dataLen, read := binary.Uvarint(s.mem[storedOffset+n : storedOffset+n+binary.MaxVarintLen64]) | |||
n += uint64(read) | |||
|
|||
s.incrementBytesRead(n) | |||
// s.incrementBytesRead(n) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
by avoid the double counting of stuff - fixing the double counting of a segment's loading portion of bytes read
61508b9
to
891f48f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this PR is incomplete.
Yeah, fixed the implementation now. |
No description provided.