Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

106 - avoid wraparounds when using ThriftUtils.RANGE_ALL

  • Loading branch information...
commit f19be8b22900a3483115b8c73a32b31f6572fcb6 1 parent 48a764f
@dehora dehora authored
View
1  build.gradle
@@ -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
View
5 src/main/java/com/netflix/astyanax/thrift/ThriftColumnFamilyQueryImpl.java
@@ -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())
Please sign in to comment.
Something went wrong with that request. Please try again.