Yes, i made a really obvious mistake at that time. 

i have understand them now. :)

thanks.


On Thursday, November 19, 2015 at 4:57:58 AM UTC+8, Dormando wrote:
>
> 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 memcached+...@googlegroups.com <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
> > 
> > 
>

-- 

--- 
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 memcached+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to