Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-954

typo in key tree logic when latest=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2
    • Database Core
    • None
    • Regular Contributors Level (Easy to Medium)

    Description

      This line

      https://github.com/apache/couchdb/blob/7fe84eba9982ebb3bcaa48b7aa28fdd2e130422d/src/couchdb/couch_key_tree.erl#L195

      seems like it should read KeysToGet3 = KeysToGet2 – LeafKeysFound, and then KeysToGet3 should be supplied to the following invocation of get_key_leafs_simple. I think the current code would crash if a user made an open_revs call with latest=true and a pair of revisions that have a parent/child relationship, or at least it would crash if latest=true was implemented (COUCHDB-953).

      Attachments

        Activity

          People

            kocolosk Adam Kocoloski
            kocolosk Adam Kocoloski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: