From b3d9a5f6b7050a2a2867a32e9e350e0972d4e1f8 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Sun, 2 Oct 2011 14:59:05 -0700 Subject: [PATCH] Fix style issue in delete. Fix test case which was not using versioned hashkit. --- libmemcached/delete.cc | 4 ++-- tests/hash_plus.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.30.2