X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fdo.c;h=14824a641aec79c659c8fbdc8f94ae912894f176;hb=30e386cd241ac56fd9205d12c143761475307705;hp=794303a89383f1ace1706bcb980c3978e8e0b292;hpb=26c65ac524f21cd73a79f3caf45cdb76c9a41bc0;p=m6w6%2Flibmemcached diff --git a/libmemcached/do.c b/libmemcached/do.c index 794303a8..14824a64 100644 --- a/libmemcached/do.c +++ b/libmemcached/do.c @@ -5,13 +5,13 @@ * Use and distribution licensed under the BSD license. See * the COPYING file in the parent directory for full text. * - * Summary: + * Summary: * */ #include "common.h" -memcached_return_t memcached_do(memcached_server_write_instance_st ptr, const void *command, +memcached_return_t memcached_do(memcached_server_write_instance_st ptr, const void *command, size_t command_length, bool with_flush) { memcached_return_t rc; @@ -51,7 +51,7 @@ memcached_return_t memcached_do(memcached_server_write_instance_st ptr, const vo } memcached_return_t memcached_vdo(memcached_server_write_instance_st ptr, - const struct __write_vector_st *vector, size_t count, + const struct libmemcached_io_vector_st *vector, size_t count, bool with_flush) { memcached_return_t rc; @@ -87,6 +87,8 @@ memcached_return_t memcached_vdo(memcached_server_write_instance_st ptr, if (sent_length == -1 || (size_t)sent_length != command_length) { rc= MEMCACHED_WRITE_FAILURE; + WATCHPOINT_ERROR(rc); + WATCHPOINT_ERRNO(errno); } else if ((ptr->root->flags.no_reply) == 0) {