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

remove_context rebuildXattr can create 2 copies of the document (when snappy is encountered)

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 5.5.0
    • couchbase-bucket

    Description

      As part of http://review.couchbase.org/#/c/90514/ to support snappy & xattr we refactored the Blob usage.

      Now if the datatype is xattr & snappy then the first const Blob will decompress the existing data into a temp buffer, later we allocate a second buffer and copy existingData into that.

      So we have two copies of the data, we should be able to use move semantics and steal the exisitingData buffer (which requires changes to the compression::Buffer)

      Attachments

        For Gerrit Dashboard: MB-28521
        # Subject Branch Project Status CR V

        Activity

          People

            jwalker Jim Walker
            jwalker Jim Walker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty