Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil-goel committed Aug 27, 2024
1 parent e14276e commit b120e27
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions levels.go
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,12 @@ func (s *levelsController) getBatch(keys [][]byte, maxVs []y.ValueStruct, startL
maxVs[i] = v
}
}
}

for i := 0; i < len(maxVs); i++ {
if len(maxVs[i].Value) > 0 {
y.NumGetsWithResultsAdd(s.kv.opt.MetricsEnabled, 1)
}
}
return maxVs, nil
}
Expand Down

0 comments on commit b120e27

Please sign in to comment.