Skip to content

Commit

Permalink
revert most of d7a0084
Browse files Browse the repository at this point in the history
  • Loading branch information
m6w6 committed Mar 1, 2023
1 parent 279113c commit 48dcc61
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions src/libmemcached/purge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -108,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;
Expand Down
2 changes: 1 addition & 1 deletion src/libmemcached/response.cc
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ static memcached_return_t _read_one_response(memcached_instance_st *instance, ch
rc = textual_read_one_response(instance, buffer, buffer_length, result);
}

if (memcached_fatal(rc) && rc != MEMCACHED_TIMEOUT) {
if (memcached_fatal(rc)) {
memcached_io_reset(instance);
}

Expand Down
3 changes: 0 additions & 3 deletions test/tests/memcached/noblock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ TEST_CASE("memcached_noblock") {
break;
case MEMCACHED_TIMEOUT:
case MEMCACHED_WRITE_FAILURE:
if(!timeout) {
--i;
}
++hit;
REQUIRE(true);
break;
Expand Down

0 comments on commit 48dcc61

Please sign in to comment.