[sheepdog] [PATCH v2 02/10] sheep: don't try to recover from working directory

Liu Yuan namei.unix at gmail.com
Thu May 9 07:18:03 CEST 2013


On 05/09/2013 10:38 AM, MORITA Kazutaka wrote:
> -		if (vnode_is_local(vnode) && tgt_epoch < sys_epoch()) {
> -			ret = sd_store->link(oid, tgt_epoch);
> +		if (vnode_is_local(vnode)) {
> +			if (tgt_epoch < sys_epoch())
> +				ret = sd_store->link(oid, tgt_epoch);
> +			else
> +				ret = SD_RES_NO_OBJ;

When recovering object from local node fails, we should try recovery
from other replica.

Thanks,
Yuan



More information about the sheepdog mailing list