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

couch_dbdump: Always printing documents as explicitly deleted when should be TTL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.0.4, 7.1.0
    • 6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.5.1, 6.6.0, 6.6.1, 6.6.2, 6.5.2, 6.5.0, 6.6.3, 6.6.4, 6.6.5, 7.0.0, 7.0.1, 7.0.2, 7.0.3
    • storage-engine
    • Untriaged
    • 1
    • Unknown

    Description

      Couchstore stores the delete source in the top-bit of flex_code and couch_dbdump decodes the flex_code to find the "TTL" delete flag as follows:

      ttl_delete = ((metaV1->flex_code << 7) & 0x1) == 1;
      

      But that should be a right shift so will always print documents as explicitly deleted

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                PagerDuty