Hi All:
I guess there exist a bug in the "ringbuffer_is_continous" function in
the Ringbuffer.c
the source code lines are as follows:
if (buffer->read_head >= buffer->write_head)
{
ptrdiff_t chunk = buffer->root + buffer->size - buffer->read_head;
if (buffer->nbytes > (libcouchbase_size_t)chunk)
{ >>>> this line
is confusing, I feel it should be the "nb" parameter instead of
"buffer->nbytes"
ret = 0;
}
}
the same problem is for the "RINGBUFFER_WRITE" block as well.
Aslan Love