Permalink
Browse files

106 - avoid wraparounds when using ThriftUtils.RANGE_ALL

  • Loading branch information...
1 parent 48a764f commit f19be8b22900a3483115b8c73a32b31f6572fcb6 @dehora dehora committed Sep 19, 2012
Showing with 5 additions and 1 deletion.
  1. +1 −0 build.gradle
  2. +4 −1 src/main/java/com/netflix/astyanax/thrift/ThriftColumnFamilyQueryImpl.java
View
@@ -1,3 +1,4 @@
+apply plugin: 'idea'
// Establish version and status
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name
@@ -219,7 +219,10 @@ public BigInteger getToken() {
// that will later be dropped
if (firstPage) {
firstPage = false;
- predicate.getSlice_range().setCount(predicate.getSlice_range().getCount() + 1);
+ // 106 - avoid wraparounds when using ThriftUtils.RANGE_ALL
+ if(! (predicate.getSlice_range().getCount() == Integer.MAX_VALUE)) {
+ predicate.getSlice_range().setCount(predicate.getSlice_range().getCount() + 1);
+ }
}
else {
if (!columnList.isEmpty())

0 comments on commit f19be8b

Please sign in to comment.