Browse Source

Fix diskFrontier.ContainsFingerprint() return value.

pull/84/head
Julius Volz 12 years ago committed by Matt T. Proud
parent
commit
a224dda9f0
  1. 2
      storage/metric/frontier.go

2
storage/metric/frontier.go

@ -39,7 +39,7 @@ func (f *diskFrontier) String() string {
}
func (f *diskFrontier) ContainsFingerprint(fingerprint model.Fingerprint) bool {
return fingerprint.Less(f.firstFingerprint) || f.lastFingerprint.Less(fingerprint)
return !(fingerprint.Less(f.firstFingerprint) || f.lastFingerprint.Less(fingerprint))
}
func newDiskFrontier(i iterator) (d *diskFrontier, err error) {

Loading…
Cancel
Save