[PATCH 3/6] Fix C operation priority bug.
Tomash Brechko
tomash.brechko at gmail.com
Thu Nov 8 14:56:14 UTC 2007
Perhaps memcached should consider to use -Wall -Wextra with GCC.
---
trunk/server/items.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/trunk/server/items.c b/trunk/server/items.c
index 00e0fd3..f7a0cb3 100644
--- a/trunk/server/items.c
+++ b/trunk/server/items.c
@@ -250,7 +250,7 @@ void do_item_update(item *it) {
if (it->time < current_time - ITEM_UPDATE_INTERVAL) {
assert((it->it_flags & ITEM_SLABBED) == 0);
- if (it->it_flags & ITEM_LINKED != 0) {
+ if ((it->it_flags & ITEM_LINKED) != 0) {
item_unlink_q(it);
it->time = current_time;
item_link_q(it);
--
1.5.3.5.529.ge3d6d
More information about the memcached
mailing list