[sheepdog] [PATCH] store/plain: use link to recover local objects

Liu Yuan namei.unix at gmail.com
Fri Sep 14 11:36:41 CEST 2012


On 09/14/2012 04:40 PM, MORITA Kazutaka wrote:
> It is not safe to rename stale objects to the working directory.  When
> reading objects for recovery, default_read reads the working directory
> first, and then, searches stale objects.  However, if the objects are
> renamed from the stale directory to the working directory on the node
> at the same time, the recovery read request fails to find the object.
> 
> To fix this race condition, this patch uses link/2 to keep stale
> objects.  This fixes test failure of tests/028.

Applied, thanks.

Yuan



More information about the sheepdog mailing list