CouchDB
  1. CouchDB
  2. COUCHDB-1170

include attachment md5 sums in _attachments

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.1
    • Component/s: HTTP Interface
    • Labels:
      None

      Description

      Crucial to functioning replication is deterministic revisions. Attachment md5 sums are used in CouchDB's revision generation (see couch_db:new_revid/1).

      Alternative CouchDB implementations may find it impossible or impractical to support binary attachments yet still wish to track changes and replicate efficiently with Apache CouchDB. To this end, such implementations need an efficient way to fetch all metadata necessary for calculating compatible revisions in the event of locally executed future updates.

      As a bonus, exposing this metadata is particularly beneficial for filesystem sync tools (such as couchapp implementations), e.g. through eliminating the need for redundantly storing checksums as user data on synchronized documents.

      To this end I propose the following 5-line patch which applies cleanly to trunk, 1.1.x and 1.0.x.

        Issue Links

          Activity

          Robert Newson made changes -
          Link This issue is superceded by COUCHDB-1173 [ COUCHDB-1173 ]
          Randall Leeds made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Randall Leeds made changes -
          Link This issue duplicates COUCHDB-687 [ COUCHDB-687 ]
          Randall Leeds made changes -
          Field Original Value New Value
          Attachment 0001-include-md5sum-field-in-_attachments-entries.patch [ 12479666 ]
          Randall Leeds created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Randall Leeds
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development