[sheepdog] [PATCH UPDATE] sheep: fix oid scheduling in recovery

Liu Yuan namei.unix at gmail.com
Tue Jun 5 13:19:25 CEST 2012


On 06/04/2012 10:57 AM, Liu Yuan wrote:

> It is not thread safe to manipulate rw->oids[] both in main and worker threads.
> Add a rw->prio_oids[] and let rw->oids[] handling be safe in recover_object_main(),
> which means no recover_object_work is being executed meanwhile.
> 
> This also fix a nasty buffer overflow in rw->oids[], which did an insane memmove
> and clean up code a bit


Applied this one.

Thanks,
Yuan



More information about the sheepdog mailing list