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

Off-by-one error in subdoc threshold calculation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.0.0-beta.1
    • 3.0.0-alpha5
    • None
    • None
    • 1

    Description

      In Couchbase.CouchbaseCollection.GetAsync, the intent is to use Subdoc for projections if there are 16 or fewer items, but the code only does it for 15 or fewer options.

      if (enumerable.Any() && enumerable.Count < 16)
      

      should be:

      if (enumerable.Any() && enumerable.Count <= 16)
      

      Attachments

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

        Activity

          People

            mike.goldsmith Michael Goldsmith
            david.nault David Nault
            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