Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2693

MutationToken.GetHashCode() implementation looks suspect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.1.1
    • 3.0.6
    • None
    • None
    • 1

    Description

      It does not spread hash codes well and in this example all the hash values are the same

      Enumerable.Range(1, 100).Select(i => new MutationToken("a", (short)i, 1, 1).GetHashCode()).ToList()

      Attachments

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

        Activity

          People

            jmorris Jeff Morris
            tommyja Tommy Jakobsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty