Couchbase Questions: C SDK

Have a Question? Get it answered by our community

ari's picture
Asked 1 year 7 months ago
Latest activity 1 year 7 months ago

C API - Are callbacks done synchronously or asynchronously?

When calling callback functions, does libcouchbase call them synchronously one after the other, or can it call several at the same time on different threads? I'm curious because I want to know if I need mutexes when accessing shared resources in the callbacks.

ari's picture
Asked 1 year 7 months ago
Latest activity 1 year 7 months ago

C API - meaning of function return codes for bulk operations

There are many functions in libcouchbase that take an array of commands (e.g. lcb_get, lcb_store) and return a single lcb_error_t. It's not clear to me what this return value represents. For example, what if I lcb_get 100 keys and trigger both an LCB_KEY_ENOENT and an LCB_ENOMEM? Also, when...

hale's picture
Asked 1 year 7 months ago
Latest activity 1 year 7 months ago

C++ Connection question

We are currently evaluating Couchbase for a distributed cache use case and I am looking to get clarity on the following:
1. Does the C++ client provide the ability to set timeout at Connection-level, Authentication-level and Request-level. The documentation here talks about Java, .net and...

Dronz's picture
Asked 1 year 7 months ago
Latest activity 1 year 7 months ago

string typo in C SDK tutorial sample code

I'm not sure where the best place to report typos is, but this seems like a good place so:
In the couchbase-sdk-c-2.0.pdf tutorial sample code, there's a typo in an error string:

{
...
Emiel Bruijntjes's picture
Asked 1 year 7 months ago
Latest activity 1 year 7 months ago

Memory leak in C library

Valgrind reports that allocated memory does not get removed:
==25320== 192 (176 direct, 16 indirect) bytes in 1 blocks are definitely lost in loss record 200 of 252
==25320== at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==25320== by 0xB5101BB:...

whosmer's picture
Asked 1 year 7 months ago
Latest activity 1 year 7 months ago

Failed to create libcouchbase instance: Failed to open shared object

I am helping to evaluate the Couchbase C++ SDK for my company, and I am writing some test code to do so. At first things went well, where I was installing onto a development machine where I had the root access needed to install the couchbase packages via yum.
However, now I am trying to...

Emiel Bruijntjes's picture
Asked 1 year 8 months ago
Latest activity 1 year 7 months ago

Calling lcb_destroy() from the error-handler

Hi,
When the error handler is called because a couchbase server is unreachable, our application calls lcb_destroy() to clean up resources. However, this seems to trigger a segmentation fault. Is this a known issue or are we doing something wrong?
I had expected that the C client does...

Pages