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

revs_limit reset after DB compaction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11
    • 1.1
    • Database Core
    • None

    Description

      As reported by Erick Johnson in the users mailing list, after compaction, the revs_limit parameter is not preserved.

      Can easily be tested with:

      $ curl -XPUT http://erick:foobar@127.0.0.40:5984/testing-compaction

      {"ok":true}

      $ curl -XPUT http://erick:foobar@127.0.0.40:5984/testing-compaction/_revs_limit -d "100"

      {"ok":true}

      $ curl http://erick:foobar@127.0.0.40:5984/testing-compaction/_revs_limit
      100
      $ curl -XPOST http://erick:foobar@127.0.0.40:5984/testing-compaction/_compact

      {"ok":true}

      $ curl http://erick:foobar@127.0.0.40:5984/testing-compaction/_revs_limit
      1000

      The following patch fixes it.

      Attachments

        1. revs_limit_preserved_after_db_compaction.patch
          1 kB
          Filipe David Borba Manana

        Activity

          People

            Unassigned Unassigned
            fdmanana Filipe David Borba Manana
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: