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
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
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