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

MutationToken.GetHashCode() implementation looks suspect

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.6
    • 3.1.1
    • 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

        For Gerrit Dashboard: NCBC-2693
        # Subject Branch Project Status CR V

        Activity

          There are no comments yet on this issue.

          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