Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-6945

DocInfo.rev_seq is declared as 64-bit, but only 32 bits are persisted


    • Flagged:
      Release Note


      couch_common.h declares the field DocInfo.rev_seq as type uint64_t. However, the database only persists it as a 32-bit value (see assemble_seq_index_value, couch_save.c:19). This means that clients trying to set values larger than 2^32-1 will find the upper 32 bits truncated when they read the document.

      The field should be changed to type uint32_t. This could cause warnings in client code if it's assigning a 64-bit value to it, but I don't believe any of our code uses this field at all, currently

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+MB-6945=message:MB-6945


        jens Jens Alfke created issue -
        farshid Farshid Ghods (Inactive) made changes -
        Field Original Value New Value
        Fix Version/s 2.0 [ 10114 ]
        farshid Farshid Ghods (Inactive) made changes -
        Priority Minor [ 4 ] Blocker [ 1 ]
        junyi Junyi Xie (Inactive) made changes -
        Assignee Jens Alfke [ jens ] Aaron Miller [ aaron ]
        junyi Junyi Xie (Inactive) made changes -
        Component/s cross-datacenter-replication [ 10136 ]
        junyi Junyi Xie (Inactive) made changes -
        Sprint Status Current Sprint
        steve Steve Yen made changes -
        Flagged [Release Note]
        aaron Aaron Miller (Inactive) made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Aaron Miller [ aaron ] Chisheng Hong [ chisheng ]
        Resolution Fixed [ 1 ]
        dipti Dipti Borkar made changes -
        Labels 2.0-beta-3-release-notes
        farshid Farshid Ghods (Inactive) made changes -
        Status Resolved [ 5 ] Closed [ 6 ]


          • Assignee:
            Chisheng Chisheng Hong (Inactive)
            jens Jens Alfke
          • Votes:
            0 Vote for this issue
            5 Start watching this issue


            • Created:

              Gerrit Reviews

              There are no open Gerrit changes