Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1159

LCB defines multiple errors with same code

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.1
    • None
    • None
    • 1

    Description

      See how many of them have the 702 code:

      /* View Error Definitions */ \
      X(LCB_ERR_VIEW_NOT_FOUND,               701, LCB_ERROR_TYPE_VIEW, 0, "View is not found") \
      X(LCB_ERR_DESIGN_DOCUMENT_NOT_FOUND,    702, LCB_ERROR_TYPE_VIEW, 0, "Design document is not found") \
      \
      /* Management API Error Definitions */ \
      X(LCB_ERR_COLLECTION_ALREADY_EXISTS,    701, LCB_ERROR_TYPE_MANAGEMENT, 0, "Collection already exists") \
      X(LCB_ERR_SCOPE_EXISTS,                 702, LCB_ERROR_TYPE_MANAGEMENT, 0, "Scope already exists") \
      X(LCB_ERR_USER_NOT_FOUND,               702, LCB_ERROR_TYPE_MANAGEMENT, 0, "User is not found") \
      X(LCB_ERR_GROUP_NOT_FOUND,              702, LCB_ERROR_TYPE_MANAGEMENT, 0, "Group is not found") \
      X(LCB_ERR_BUCKET_ALREADY_EXISTS,        702, LCB_ERROR_TYPE_MANAGEMENT, 0, "Bucket already exists") \
      

      Funny enough I found this because rustc pattern match said it's an unreachable pattern. Yay for intelligent compilers

      Attachments

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

        Activity

          Build libcouchbase-2.8.5-606 contains libcouchbase commit 0bc11cd with commit message:
          CCBC-1159: Fix error codes for Management API

          build-team Couchbase Build Team added a comment - Build libcouchbase-2.8.5-606 contains libcouchbase commit 0bc11cd with commit message: CCBC-1159 : Fix error codes for Management API

          Build couchbase-server-7.0.0-3115 contains libcouchbase commit 0bc11cd with commit message:
          CCBC-1159: Fix error codes for Management API

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-3115 contains libcouchbase commit 0bc11cd with commit message: CCBC-1159 : Fix error codes for Management API

          People

            avsej Sergey Avseyev
            daschl Michael Nitschinger
            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