Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
don't forget to filter sentinel
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Tsang committed Sep 29, 2011
1 parent 2c97671 commit 12b2970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/twitter/haplocheirus/RedisShard.scala
Expand Up @@ -233,7 +233,7 @@ class RedisShard(val shardInfo: ShardInfo, val weight: Int, val children: Seq[Ha
lastIndex
}

val filteredEntries = entries.slice(toIdIndex, fromIdIndex)
val filteredEntries = entries.slice(toIdIndex, fromIdIndex) filter isSentinel
Some(TimelineSegment(filteredEntries, filteredEntries.size))
}
}
Expand Down

0 comments on commit 12b2970

Please sign in to comment.