A couple of minor typos in C++ API reference examples
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");'
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