Details
Description
After updating ForestDB from commit fd41b293 (stable branch 4/23/16) to bc0e6044 (current stable branch), a Couchbase Lite unit test is failing. The test has to do with descending-order iteration starting with a call to fdb_iterator_seek_to_max, where the end_key doesn't exist.
In this test the database contains documents with keys doc-000, doc-001 ... doc-099.
- fdb_iter_init(start_key="doc-024", end_key="doc-029b", opt=0)
- fdb_iter_seek_to_max()
- fdb_iter_get()
Expected: Reads document doc-029
Actual: Reads document doc-030
Attachments
Issue Links
- blocks
-
MB-19612 4.5.1 Minor Release
- Closed
For Gerrit Dashboard: MB-19941 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
64961,1 | MB-19941: Fix iterator_seek_to_max for non-existent key | master | forestdb | Status: ABANDONED | 0 | -1 |
64966,4 | MB-19941: Validate iterator range for end/start key | watson | forestdb | Status: MERGED | +2 | +1 |
64985,1 | Merge remote-tracking branch 'origin/watson' into stable | stable | forestdb | Status: ABANDONED | +2 | +1 |
64986,2 | Merge remote-tracking branch 'origin/watson' into master | master | forestdb | Status: MERGED | +2 | +1 |
64988,1 | Merge remote-tracking branch 'origin/watson' into HEAD | stable | forestdb | Status: ABANDONED | 0 | 0 |
64989,1 | Merge remote-tracking branch 'origin/watson' into stable | stable | forestdb | Status: MERGED | +2 | +1 |