Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: library
    • Security Level: Public
    • Labels:
      None

      Description

      From http://www.couchbase.com/forums/thread/string-typo-c-sdk-tutorial-sample-code

      In the couchbase-sdk-c-2.0.pdf tutorial sample code, there's a typo in an error string:
      {
      lcb_store_cmd_t cmd;
      const lcb_store_cmd_t *commands[1];
      commands[0] = &cmd;
      memset(&cmd, 0, sizeof(cmd));
      cmd.v.v0.operation = LCB_SET;
      cmd.v.v0.key = "foo";
      cmd.v.v0.nkey = 3;
      cmd.v.v0.bytes = "bar";
      cmd.v.v0.nbytes = 3;
      err = lcb_store(instance, NULL, 1, commands);
      if (err != LCB_SUCCESS)

      { fprintf(stderr, "Failed to get: %s\n", lcb_strerror(NULL, err)); return 1; }

      }
      The err code there is for a set operation, so the error string in the fprintf call should say "Failed to set" not "Failed to get".

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

        Activity

        Show
        avsej Sergey Avseyev added a comment - https://github.com/couchbase/docs/pull/209
        Hide
        kzeller kzeller added a comment -

        merged

        Show
        kzeller kzeller added a comment - merged

          People

          • Assignee:
            kzeller kzeller
            Reporter:
            tgrall Tug Grall (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes