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

Clean up data packing/unpacking code in CouchStore

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • feature-backlog
    • None
    • storage-engine
    • Security Level: Public
    • None

    Description

      Replace the bit-access functions in bitfield.h with a series of structs representing big-endian integers of sizes 1-6 bytes, and a set of functions to read and write them.

      This then allows us to define actual structs for the database data structures, instead of using memcpy with cryptic byte offsets, which makes the code clearer.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jens Jens Alfke
            jens Jens Alfke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty