X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Flibmemcached%2Fpurge.cc;h=ff0321052ab6117b63d7ff7b15173ca6a0ee5d6e;hb=48dcc61a4919f6f3d5ee164630a843f2d8b8ade9;hp=d4b3146da983790322440437337da27901b3f233;hpb=2f289c64f625962d945ec3bee80f36bc5c61ee35;p=awesomized%2Flibmemcached diff --git a/src/libmemcached/purge.cc b/src/libmemcached/purge.cc index d4b3146d..ff032105 100644 --- a/src/libmemcached/purge.cc +++ b/src/libmemcached/purge.cc @@ -1,6 +1,6 @@ /* +--------------------------------------------------------------------+ - | libmemcached - C/C++ Client Library for memcached | + | libmemcached-awesome - C/C++ Client Library for memcached | +--------------------------------------------------------------------+ | Redistribution and use in source and binary forms, with or without | | modification, are permitted under the terms of the BSD license. | @@ -9,14 +9,13 @@ | the terms online at: https://opensource.org/licenses/BSD-3-Clause | +--------------------------------------------------------------------+ | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ | - | Copyright (c) 2020 Michael Wallner | + | Copyright (c) 2020-2021 Michael Wallner https://awesome.co/ | +--------------------------------------------------------------------+ */ #include "libmemcached/common.h" -#include "p9y/socket.hpp" -#define memcached_set_purging(__object, __value) ((__object)->state.is_purging = (__value)) +#define memcached_set_purging(object_, value_) ((object_)->state.is_purging = (value_)) class Purge { public: @@ -109,9 +108,6 @@ bool memcached_purge(memcached_instance_st *ptr) { WATCHPOINT_ERROR(rc); is_successful = false; } - if (rc == MEMCACHED_TIMEOUT) { - break; - } if (ptr->root->callbacks) { memcached_callback_st cb = *ptr->root->callbacks;