That assert() is checking that the item you're about to link isn't already
in there as the head. It's a basic double-linking prevention check.

that code is adding the link, not removing it.

On Sat, 7 Nov 2015, Song Zhigang wrote:

> i was reading memcached source code these days. but i got confused at 
> function "do_item_link_q", there is an assert
>
> assert(it != *head);
>
> in this function, is this means that we can't remove a item from the head of 
> the link?
>
> Yours
>
> sidgwick
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
>

Reply via email to