Merge lp:~pbeaman/akiban-persistit/fix-1046049-keyfilter-wrong into lp:akiban-persistit

Proposed by Peter Beaman
Status: Rejected
Rejected by: Peter Beaman
Proposed branch: lp:~pbeaman/akiban-persistit/fix-1046049-keyfilter-wrong
Merge into: lp:akiban-persistit
Diff against target: 31 lines (+12/-1)
2 files modified
src/main/java/com/persistit/KeyFilter.java (+1/-1)
src/test/resources/com/persistit/KeyFilterTestScript1 (+11/-0)
To merge this branch: bzr merge lp:~pbeaman/akiban-persistit/fix-1046049-keyfilter-wrong
Reviewer Review Type Date Requested Status
Peter Beaman Disapprove
Akiban Build User Needs Fixing
Nathan Williams Approve
Review via email: mp+129738@code.launchpad.net

Description of the change

Fix bug 1046049: KeyFilter is broken on range deletes for LT and LTEQ directions. The bug is a simply copy-paste error in the KeyFilter class. Fix corrects the variable name and adds test cases to KeyFilterTestScript1.

To post a comment you must log in.
Revision history for this message
Nathan Williams (nwilliams) wrote :

Looks good. A quick skim of RangeTerm doesn't yield anything interesting either.

review: Approve
Revision history for this message
Peter Beaman (pbeaman) wrote :

Pushing this through since 3.2.1 update is now merged.

Revision history for this message
Akiban Build User (build-akiban) wrote :

There was one failure during build/test:

* bzr error: Nothing to merge.

review: Needs Fixing
Revision history for this message
Nathan Williams (nwilliams) wrote :

Something is off with this branch. It got marked as merged when lp:~pbeaman/akiban-persistit/fix-1023549-traverse-wrong went in, but these changes are not in trunk. And LP/bzr thinks there is nothing to merge.

Peter, maybe try a new branch?

Revision history for this message
Peter Beaman (pbeaman) wrote :

Yes, strange. The branch contains the changes but Bazaar doesn't seem to know it. I'm rejecting this branch and proposing a new one as suggested.

review: Disapprove

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/main/java/com/persistit/KeyFilter.java'
--- src/main/java/com/persistit/KeyFilter.java 2012-08-24 13:57:19 +0000
+++ src/main/java/com/persistit/KeyFilter.java 2012-10-15 19:04:24 +0000
@@ -897,7 +897,7 @@
897 if (compare > 0) {897 if (compare > 0) {
898 System.arraycopy(_itemToBytes, 0, keyBytes, offset, _itemToBytes.length);898 System.arraycopy(_itemToBytes, 0, keyBytes, offset, _itemToBytes.length);
899 key.setEncodedSize(offset + _itemToBytes.length);899 key.setEncodedSize(offset + _itemToBytes.length);
900 keyBytes[offset + _itemFromBytes.length] = 0;900 keyBytes[offset + _itemToBytes.length] = 0;
901 return true;901 return true;
902 }902 }
903 return false;903 return false;
904904
=== modified file 'src/test/resources/com/persistit/KeyFilterTestScript1'
--- src/test/resources/com/persistit/KeyFilterTestScript1 2012-08-02 04:51:48 +0000
+++ src/test/resources/com/persistit/KeyFilterTestScript1 2012-10-15 19:04:24 +0000
@@ -194,3 +194,14 @@
194KF {:0}194KF {:0}
195KEY {-1}195KEY {-1}
196GT {-1}196GT {-1}
197
198#
199# Cases added for bug https://bugs.launchpad.net/akiban-persistit/+bug/1046049
200#
201KF {{:"abc"}}
202KEY {}
203NUDGE AFTER
204GT <false>
205GTEQ <false>
206LTEQ {"abc",{after}}
207LT {"abc",{after}}

Subscribers

People subscribed via source and target branches