X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fauto.c;h=608324df23ff8d99acde7960997ab74cd8c824a1;hb=9979e3f8206c764a881550dda41a444f005206f3;hp=4d8cc0bdca3b37f945f6eaf6b75814171f74c6cf;hpb=b4aaefe9a54dd25f1288c714ac13aaef8fc4fcd6;p=m6w6%2Flibmemcached diff --git a/libmemcached/auto.c b/libmemcached/auto.c index 4d8cc0bd..608324df 100644 --- a/libmemcached/auto.c +++ b/libmemcached/auto.c @@ -43,7 +43,7 @@ static memcached_return_t text_incr_decr(memcached_st *ptr, unlikely (send_length >= MEMCACHED_DEFAULT_COMMAND_SIZE) return MEMCACHED_WRITE_FAILURE; - rc= memcached_do(instance, buffer, send_length, 1); + rc= memcached_do(instance, buffer, send_length, true); if (no_reply || rc != MEMCACHED_SUCCESS) return rc; @@ -112,8 +112,8 @@ static memcached_return_t binary_incr_decr(memcached_st *ptr, uint8_t cmd, request.message.body.expiration= htonl((uint32_t) expiration); if ((memcached_do(instance, request.bytes, - sizeof(request.bytes), 0)!=MEMCACHED_SUCCESS) || - (memcached_io_write(instance, key, key_length, 1) == -1)) + sizeof(request.bytes), false) != MEMCACHED_SUCCESS) || + (memcached_io_write(instance, key, key_length, true) == -1)) { memcached_io_reset(instance); return MEMCACHED_WRITE_FAILURE;