[sheepdog] [PATCH 3/3] plain_store: store stale objects in .stale/[epoch]/

Liu Yuan namei.unix at gmail.com
Sun Aug 26 13:23:38 CEST 2012


On 08/26/2012 06:50 PM, MORITA Kazutaka wrote:
>  int default_purge_obj(void)
>  {
> -	return for_each_object_in_wd(move_object_to_stale_dir, NULL);
> +	uint32_t tgt_epoch = sys_epoch() - 1;
> +

tgt_epoch = get_latest_epoch() to get the epoch to which the sheep has crashed into?
I am not sure of this line thought.

Thanks,
Yuan



More information about the sheepdog mailing list