Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

A couple of minor typos in C++ API reference examples

2 replies [Last post]
  • Login or register to post comments
Sun, 02/03/2013 - 13:44
Dronz
Offline
Joined: 09/17/2011
Groups: None

In the example for lcb_get_server_list:

lcb_t instance;
...
const char *const *servers = lcb_get_server_list(tmphandle);

"tmphandle" should match the name of the lcb_t object, i.e. "instance" - tmphandle isn't defined in the example.

and in the example for lcb_set_configuration_callback:

fprintf(stdout, "Received new cluster configuration\n");
break;

case LCB_CONFIGURATION_CHANGED:
fprintf(stderr, "Received cluster change notification0);
break;

case LCB_CONFIGURATION_UNCHANGED:
fprintf(stderr, "Received cluster notification0);
break;
default:
fprintf(stderr, "Unknown configuration type received0);

The three strings that end in '0);' are syntax errors and need to end like the first one in '\n");'

Top
  • Login or register to post comments
Mon, 02/04/2013 - 02:19
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

Thanks for discovering and raising this.

I have logged an issue for this:
http://www.couchbase.com/issues/browse/CCBC-173

Regards

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Mon, 02/04/2013 - 09:13
Dronz
Offline
Joined: 09/17/2011
Groups: None

Hi Tug,

I'm just trying to be helpful, but I notice the link you just gave is to the previous typo I posted, not to the two other typos in example code that I posted in this thread.

Thanks,

Dronz

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker