Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-2072

[3.0.1 backport] crc32c values with leading zeros trigger unnecessary import

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.1
    • None
    • SyncGateway
    • Security Level: Public
    • None
    • 3

    Description

      Documents with matching crc32c values should not be imported by Sync Gateway.  We're using the server's crc32c macro to populate the values in _sync.crc32c - this pads leading zeros.  Sync Gateway's computation of the string representation of the crc32c value does not.

      https://github.com/couchbase/sync_gateway/blob/master/base/util.go#L1060

       

      Attachments

        Activity

          People

            tor.colvin Tor Colvin
            adamf Adam Fraser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty