X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fdo.cc;h=daf1a1150eb2d242303b9826488f9475a6a67283;hb=bb98ce33936edc0dc914652c0227f95727518b16;hp=73ef06d34f11063859e19c92e331a4f27288a47a;hpb=cb3ca2b63f9ddb2e070814623a3965c88a84eea7;p=awesomized%2Flibmemcached diff --git a/libmemcached/do.cc b/libmemcached/do.cc index 73ef06d3..daf1a115 100644 --- a/libmemcached/do.cc +++ b/libmemcached/do.cc @@ -11,7 +11,7 @@ #include -static memcached_return_t _vdo_udp(org::libmemcached::Instance* instance, +static memcached_return_t _vdo_udp(memcached_instance_st* instance, libmemcached_io_vector_st vector[], const size_t count) { @@ -64,7 +64,7 @@ static memcached_return_t _vdo_udp(org::libmemcached::Instance* instance, #endif } -memcached_return_t memcached_vdo(org::libmemcached::Instance* instance, +memcached_return_t memcached_vdo(memcached_instance_st* instance, libmemcached_io_vector_st vector[], const size_t count, const bool with_flush) @@ -93,10 +93,10 @@ memcached_return_t memcached_vdo(org::libmemcached::Instance* instance, bool sent_success= memcached_io_writev(instance, vector, count, with_flush); if (sent_success == false) { - assert(memcached_last_error(instance->root) == MEMCACHED_SUCCESS); + //assert(memcached_last_error(instance->root) == MEMCACHED_SUCCESS); if (memcached_last_error(instance->root) == MEMCACHED_SUCCESS) { - assert(memcached_last_error(instance->root) != MEMCACHED_SUCCESS); + //assert(memcached_last_error(instance->root) != MEMCACHED_SUCCESS); return memcached_set_error(*instance, MEMCACHED_WRITE_FAILURE, MEMCACHED_AT); } else