Couchbase

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Couchbase.com Access more options
    • Why NoSQL?
    • Couchbase Server
    • Download
    • Learn
    • Careers
Couchbase C client library libcouchbase
  • Couchbase C client library libcouchbase
  • CCBC-173

Small typo in C tutorial

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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".

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Gerrit Reviews
Hide
Permalink
Sergey Avseyev added a comment - 06/May/13 2:34 AM
https://github.com/couchbase/docs/pull/209
Show
Sergey Avseyev added a comment - 06/May/13 2:34 AM https://github.com/couchbase/docs/pull/209
Hide
Permalink
Karen Zeller added a comment - 06/May/13 11:25 AM
merged
Show
Karen Zeller added a comment - 06/May/13 11:25 AM merged

People

  • Assignee:
    Karen Zeller
    Reporter:
    Tug Grall
Vote (0)
Watch (2)

Dates

  • Created:
    30/Jan/13 3:03 PM
    Updated:
    06/May/13 11:25 AM
    Resolved:
    06/May/13 2:34 AM

Agile

  • View on Board
  • Atlassian JIRA (v5.2.4#845-sha1:c9f4cc4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Couchbase. Try JIRA - bug tracking software for your team.