Skip to content

Commit

Permalink
Useless check. 'id' will never be higher than POWER_LARGEST.
Browse files Browse the repository at this point in the history
Which is defined as 200 in slabs.c, but LARGEST_ID is defined as 255 in items.c? Weird.


git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@737 b0b603af-a30f-0410-a34e-baf09ae79d0b
  • Loading branch information
dormando committed Mar 3, 2008
1 parent 1089f03 commit e215d6c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion items.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e215d6c

Please sign in to comment.