[PATCH 2/5] Useless check. 'id' will never be higher than POWER_LARGEST.

dormando dormando at rydia.net
Sun Mar 2 22:37:00 UTC 2008


Which is defined as 200 in slabs.c, but LARGEST_ID is defined as 255 in items.c? Weird.

---
 server/items.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/server/items.c b/server/items.c
index 7850239..c53a350 100644
--- a/server/items.c
+++ b/server/items.c
@@ -106,7 +106,6 @@ item *do_item_alloc(char *key, const size_t nkey, const int flags, const rel_tim
          * tries
          */
 
-        if (id > LARGEST_ID) return NULL;
         if (tails[id] == 0) return NULL;
 
         for (search = tails[id]; tries > 0 && search != NULL; tries--, search=search->prev) {
-- 
1.5.4.2



More information about the memcached mailing list