diff options
author | Paul Joseph Davis <davisp@apache.org> | 2011-08-15 03:57:48 +0000 |
---|---|---|
committer | Paul Joseph Davis <davisp@apache.org> | 2011-08-15 03:57:48 +0000 |
commit | 0dc0f8b41f627876f65183ea1d99c68b16abeae0 (patch) | |
tree | cc8b672ac2c4f3b7a38c05c3c0de0be023369b15 /src/couchdb/couch_btree.erl | |
parent | 2eb62337efc1171d1ea1e4392f8cacf0dabc1ab0 (diff) |
Fix empty range check for raw collation.
The check for empty ranges was not taking into account the
view option for raw collation. This fixes that by passing
the couch_btree:less/2 function into the check.
Patch by: Jason Smith
Back port of: 1156506, 1156507, 1156509, 1156509, 1156610
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1157706 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_btree.erl')
-rw-r--r-- | src/couchdb/couch_btree.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_btree.erl b/src/couchdb/couch_btree.erl index 91bc8f1b..0ddf7a48 100644 --- a/src/couchdb/couch_btree.erl +++ b/src/couchdb/couch_btree.erl @@ -15,6 +15,7 @@ -export([open/2, open/3, query_modify/4, add/2, add_remove/3]). -export([fold/4, full_reduce/1, final_reduce/2, foldl/3, foldl/4]). -export([fold_reduce/4, lookup/2, get_state/1, set_options/2]). +-export([less/3]). -define(CHUNK_THRESHOLD, 16#4ff). |