commit | a34f2c8fa2769478a8a8fa4610ca2c0b314bc652 | [log] [tgz] |
---|---|---|
author | alexander.behm <alexander.behm@123451ca-8445-de46-9d55-352943316053> | Tue Aug 28 01:02:34 2012 +0000 |
committer | alexander.behm <alexander.behm@123451ca-8445-de46-9d55-352943316053> | Tue Aug 28 01:02:34 2012 +0000 |
tree | d23c2eb937ce261054d40ae4192a9964ab7d5346 | |
parent | 674019590308b2a7aa8aa7e9bb641578f8350856 [diff] |
Small bugfix related to pinning/unpinning papes properly. git-svn-id: https://hyracks.googlecode.com/svn/branches/hyracks_inverted_index_updates_new@1865 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks-storage-am-lsm-invertedindex/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/ondisk/OnDiskInvertedIndexRangeSearchCursor.java b/hyracks-storage-am-lsm-invertedindex/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/ondisk/OnDiskInvertedIndexRangeSearchCursor.java index 85743ca..995b854 100644 --- a/hyracks-storage-am-lsm-invertedindex/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/ondisk/OnDiskInvertedIndexRangeSearchCursor.java +++ b/hyracks-storage-am-lsm-invertedindex/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/ondisk/OnDiskInvertedIndexRangeSearchCursor.java
@@ -81,8 +81,10 @@ if (invListCursor.hasNext()) { return true; } - invListCursor.unpinPages(); - unpinNeeded = false; + if (unpinNeeded) { + invListCursor.unpinPages(); + unpinNeeded = false; + } if (!btreeCursor.hasNext()) { return false; }