Skip to content

Commit

Permalink
106 - avoid wraparounds when using ThriftUtils.RANGE_ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
dehora committed Sep 19, 2012
1 parent 48a764f commit f19be8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
@@ -1,3 +1,4 @@
apply plugin: 'idea'
// Establish version and status // Establish version and status
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name


Expand Down
Expand Up @@ -219,7 +219,10 @@ public ColumnList<C> internalExecute(Client client) throws Exception {
// that will later be dropped // that will later be dropped
if (firstPage) { if (firstPage) {
firstPage = false; 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 { else {
if (!columnList.isEmpty()) if (!columnList.isEmpty())
Expand Down

0 comments on commit f19be8b

Please sign in to comment.