mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Fix nil pointer exception in frontier building.
This commit is contained in:
parent
896e172463
commit
bb9c5ed7aa
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ func (f *diskFrontier) ContainsFingerprint(fingerprint model.Fingerprint) bool {
|
|||
|
||||
func newDiskFrontier(i iterator) (d *diskFrontier, err error) {
|
||||
i.SeekToLast()
|
||||
if i.Key() == nil {
|
||||
if !i.Valid() || i.Key() == nil {
|
||||
return
|
||||
}
|
||||
lastKey, err := extractSampleKey(i)
|
||||
|
|
|
|||
Loading…
Reference in a new issue