From: Brian Aker Date: Sun, 2 Oct 2011 21:59:05 +0000 (-0700) Subject: Fix style issue in delete. Fix test case which was not using versioned hashkit. X-Git-Tag: 1.0.2~9^2~2^2~7 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b3d9a5f6b7050a2a2867a32e9e350e0972d4e1f8;p=awesomized%2Flibmemcached Fix style issue in delete. Fix test case which was not using versioned hashkit. --- diff --git a/libmemcached/delete.cc b/libmemcached/delete.cc index 669d8ae1..5244f0db 100644 --- a/libmemcached/delete.cc +++ b/libmemcached/delete.cc @@ -84,7 +84,7 @@ memcached_return_t memcached_delete_by_key(memcached_st *ptr, if (ptr->flags.binary_protocol) { - likely (! expiration) + if (expiration == 0) { rc= binary_delete(ptr, server_key, key, key_length, to_write); } @@ -97,7 +97,7 @@ memcached_return_t memcached_delete_by_key(memcached_st *ptr, { int send_length; - unlikely (expiration) + if (expiration) { if ((instance->major_version == 1 && instance->minor_version > 2) || diff --git a/tests/hash_plus.cc b/tests/hash_plus.cc index 3d2545ab..fada2a6f 100644 --- a/tests/hash_plus.cc +++ b/tests/hash_plus.cc @@ -10,7 +10,7 @@ #include #include -#include +#include using namespace libtest;