Skip to content

Commit

Permalink
CLEANUP: removed the dummy fetch in memcached_get_by_key().
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpark816 committed Jan 20, 2022
1 parent ca0f6b1 commit 7b5cf92
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions libmemcached/get.cc
Original file line number Diff line number Diff line change
Expand Up @@ -618,18 +618,6 @@ char *memcached_get_by_key(memcached_st *ptr,
return NULL;
}

size_t dummy_length;
uint32_t dummy_flags;
memcached_return_t dummy_error;

char *dummy_value= memcached_fetch(ptr, NULL, NULL,
&dummy_length, &dummy_flags,
&dummy_error);
assert_msg(dummy_value == 0, "memcached_fetch() returned additional values beyond the single get it expected");
assert_msg(dummy_length == 0, "memcached_fetch() returned additional values beyond the single get it expected");
assert_msg(ptr->query_id >= query_id +1, "Programmer error, the query_id was not incremented.");
//assert_msg(ptr->query_id == query_id +1, "Programmer error, the query_id was not incremented.");

return value;
}

Expand Down

0 comments on commit 7b5cf92

Please sign in to comment.