Skip to content
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

Fix discard stats moved by GC bug #929

Merged
merged 9 commits into from
Jul 18, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix empty value log
  • Loading branch information
Ibrahim Jarif committed Jul 13, 2019
commit 5c521f4795bbbbd7144efd91ecb4c01c0e5c9a07
6 changes: 3 additions & 3 deletions value.go
Original file line number Diff line number Diff line change
Expand Up @@ -1438,10 +1438,10 @@ func (vlog *valueLog) populateDiscardStats() error {
if err != nil {
return err
}
// Vlaue doesn't exist.
// Value doesn't exist.
if vs.Meta == 0 && len(vs.Value) == 0 {
vs.Value = []byte{}
break
vlog.opt.Debugf("Value log discard stats empty")
return nil
}
vp.Decode(vs.Value)
// Entry stored in LSM tree.
Expand Down