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
1=== modified file 'src/main/java/com/persistit/KeyFilter.java'
2--- src/main/java/com/persistit/KeyFilter.java 2012-08-24 13:57:19 +0000
3+++ src/main/java/com/persistit/KeyFilter.java 2012-10-15 19:04:24 +0000
4@@ -897,7 +897,7 @@
5 if (compare > 0) {
6 System.arraycopy(_itemToBytes, 0, keyBytes, offset, _itemToBytes.length);
7 key.setEncodedSize(offset + _itemToBytes.length);
8- keyBytes[offset + _itemFromBytes.length] = 0;
9+ keyBytes[offset + _itemToBytes.length] = 0;
10 return true;
11 }
12 return false;
13
14=== modified file 'src/test/resources/com/persistit/KeyFilterTestScript1'
15--- src/test/resources/com/persistit/KeyFilterTestScript1 2012-08-02 04:51:48 +0000
16+++ src/test/resources/com/persistit/KeyFilterTestScript1 2012-10-15 19:04:24 +0000
17@@ -194,3 +194,14 @@
18 KF {:0}
19 KEY {-1}
20 GT {-1}
21+
22+#
23+# Cases added for bug https://bugs.launchpad.net/akiban-persistit/+bug/1046049
24+#
25+KF {{:"abc"}}
26+KEY {}
27+NUDGE AFTER
28+GT <false>
29+GTEQ <false>
30+LTEQ {"abc",{after}}
31+LT {"abc",{after}}

Subscribers

People subscribed via source and target branches