What does cmd 'flush_all' use for?
John.H
xiaocong.hust at gmail.com
Wed Aug 8 07:21:24 UTC 2007
Some body say this cmd will invalidate all item in the memcached server.
But why the curr_item STAT not set to zero?
And I read the source code:
in the do_item_flush_expired function,it give a condition:
if (iter->time >= settings.oldest_live) {
next = iter->next;
if ((iter->it_flags & ITEM_SLABBED) == 0) {
do_item_unlink(iter);
}
} else {
/* We've hit the first old item. Continue to the next queue.
*/
break;
}
settings.oldest_live = currenttime - 1
can iter->time >= settings.oldest_live be true??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070808/29366e3d/attachment.htm
More information about the memcached
mailing list