Revert interval overlap comparison changes

This commit is contained in:
Fabian Reinartz 2017-03-07 12:01:25 +01:00
parent 2841499212
commit 3910b913bd
1 changed files with 3 additions and 3 deletions

6
db.go
View File

@ -569,17 +569,17 @@ func (db *DB) appendable() []*headBlock {
}
func intervalOverlap(amin, amax, bmin, bmax int64) bool {
if bmin >= amin && bmin < amax {
if bmin >= amin && bmin <= amax {
return true
}
if amin >= bmin && amin < bmax {
if amin >= bmin && amin <= bmax {
return true
}
return false
}
func intervalContains(min, max, t int64) bool {
return t >= min && t < max
return t >= min && t <= max
}
// blocksForInterval returns all blocks within the partition that may contain