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

track conflict count in db_info (was built-in conflicts view)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • HTTP Interface
    • None
    • Committers Level (Medium to Hard)

    Description

      This patch adds a built-in _conflicts view indexed by document ID that looks like

      GET /dbname/_conflicts

      {"rows":[ {"id":"foo", "rev":"1-1aa8851c9bb2777e11ba56e0bf768649", "conflicts":["1-bdc15320c0850d4ee90ff43d1d298d5d"]}

      ]}

      GET /dbname/_conflicts?deleted=true

      {"rows":[ {"id":"bar", "rev":"5-dd31186f5aa11ebd47eb664fb342f1b1", "conflicts":["5-a0efbb1990c961a078dc5308d03b7044"], "deleted_conflicts":["3-bdc15320c0850d4ee90ff43d1d298d5d","2-cce334eeeb02d04870e37dac6d33198a"]}

      ,

      {"id":"baz", "rev":"2-eec205a9d413992850a6e32678485900", "deleted":true, "deleted_conflicts":["2-10009b36e28478b213e04e71c1e08beb"]}

      ]}

      As the HTTPd and view layers are a bit outside my specialty I figured I should ask for a Review before Commit.

      Attachments

        1. 462-jan-2.patch
          6 kB
          Jan Lehnardt
        2. conflicts_in_db_info.diff
          15 kB
          Bob Dionne
        3. conflicts_in_db_info2.diff
          27 kB
          Bob Dionne
        4. conflicts_view.diff
          5 kB
          Adam Kocoloski
        5. COUCHDB-462-adam-updated.patch
          15 kB
          Adam Kocoloski
        6. COUCHDB-462-jan.patch
          6 kB
          Jan Lehnardt
        7. whitespace.diff
          7 kB
          Bob Dionne

        Issue Links

          Activity

            People

              dionne Bob Dionne
              kocolosk Adam Kocoloski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: