[sheepdog] read/write during recovery

MORITA Kazutaka morita.kazutaka at gmail.com
Tue Jul 24 07:53:24 CEST 2012


On Tue, Jul 24, 2012 at 1:33 PM, Dietmar Maurer <dietmar at proxmox.com> wrote:
> Hi all,
>
> first, sorry for asking this again. I would really like to understand the code,
> so the following question is important for me.
>
> How does read/write during recovery works exactly.
>
> I first though we can simply reject reads. For writes, we can reject them
> until we start object recovery. After that point we cache/log written data (but
> still reject reads). When we have received the whole object we merge it with
> write cache (apply write log).
>
> But code in request.c (request_in_recovery()) seems to delay such
> request, and put them on a wait queue.
>
> Why is that necessary?

My answer didn't help you?

http://lists.wpkg.org/pipermail/sheepdog/2012-July/005478.html

Thanks,

Kazutaka



More information about the sheepdog mailing list