3 memcached_return_t
memcached_flush_buffers(memcached_st
*memc
)
5 memcached_return_t ret
= MEMCACHED_SUCCESS
;
7 for (uint32_t x
= 0; x
< memcached_server_count(memc
); ++x
)
8 if (memc
->hosts
[x
].write_buffer_offset
!= 0)
10 if (memc
->hosts
[x
].fd
== -1 &&
11 (ret
= memcached_connect(&memc
->hosts
[x
])) != MEMCACHED_SUCCESS
)
13 WATCHPOINT_ERROR(ret
);
16 if (memcached_io_write(&memc
->hosts
[x
], NULL
, 0, 1) == -1)
17 ret
= MEMCACHED_SOME_ERRORS
;