Skip to content

Commit

Permalink
Issue #7052 was fixed
Browse files Browse the repository at this point in the history
(cherry picked from commit 0d25f57)
  • Loading branch information
andrii0lomakin committed Jan 3, 2017
1 parent 302fb47 commit a56b458
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ public PureTxBetweenIndexForwardCursor(Object fromKey, boolean fromInclusive, Ob
fromKey = enhanceFromCompositeKeyBetweenAsc(fromKey, fromInclusive);
toKey = enhanceToCompositeKeyBetweenAsc(toKey, toInclusive);

if (toInclusive)
if (fromInclusive)
firstKey = indexChanges.getCeilingKey(fromKey);
else
firstKey = indexChanges.getHigherKey(fromKey);

if (fromInclusive)
if (toInclusive)
lastKey = indexChanges.getFloorKey(toKey);
else
lastKey = indexChanges.getLowerKey(toKey);
Expand Down Expand Up @@ -156,12 +156,12 @@ public PureTxBetweenIndexBackwardCursor(Object fromKey, boolean fromInclusive, O
fromKey = enhanceFromCompositeKeyBetweenDesc(fromKey, fromInclusive);
toKey = enhanceToCompositeKeyBetweenDesc(toKey, toInclusive);

if (toInclusive)
if (fromInclusive)
firstKey = indexChanges.getCeilingKey(fromKey);
else
firstKey = indexChanges.getHigherKey(fromKey);

if (fromInclusive)
if (toInclusive)
lastKey = indexChanges.getFloorKey(toKey);
else
lastKey = indexChanges.getLowerKey(toKey);
Expand Down

0 comments on commit a56b458

Please sign in to comment.