projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix for platform poll() return values.
[m6w6/libmemcached]
/
libmemcached
/
flush.c
diff --git
a/libmemcached/flush.c
b/libmemcached/flush.c
index cb044b0c6e1216015311d137915cc852fa2a71dc..8e1361a886a92546d6fb6326ac7faed012a9ea26 100644
(file)
--- a/
libmemcached/flush.c
+++ b/
libmemcached/flush.c
@@
-43,7
+43,7
@@
static memcached_return_t memcached_flush_textual(memcached_st *ptr,
send_length= (size_t) snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE,
"flush_all%s\r\n", no_reply ? " noreply" : "");
send_length= (size_t) snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE,
"flush_all%s\r\n", no_reply ? " noreply" : "");
- rc= memcached_do(instance, buffer, send_length,
1
);
+ rc= memcached_do(instance, buffer, send_length,
true
);
if (rc == MEMCACHED_SUCCESS && !no_reply)
(void)memcached_response(instance, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL);
if (rc == MEMCACHED_SUCCESS && !no_reply)
(void)memcached_response(instance, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL);
@@
-83,7
+83,7
@@
static memcached_return_t memcached_flush_binary(memcached_st *ptr,
}
if (memcached_do(instance, request.bytes,
}
if (memcached_do(instance, request.bytes,
- sizeof(request.bytes),
1
) != MEMCACHED_SUCCESS)
+ sizeof(request.bytes),
true
) != MEMCACHED_SUCCESS)
{
memcached_io_reset(instance);
return MEMCACHED_WRITE_FAILURE;
{
memcached_io_reset(instance);
return MEMCACHED_WRITE_FAILURE;