[sheepdog] [PATCH 2/2] sheep: remove stale objects after recovery fully completed

Liu Yuan namei.unix at gmail.com
Mon Aug 27 05:58:26 CEST 2012


On 08/26/2012 03:54 PM, MORITA Kazutaka wrote:
> +static void notify_recovery_completion_work(struct work *work)
> +{
> +	struct recovery_work *rw = container_of(work, struct recovery_work,
> +						work);
> +	struct sd_req hdr;
> +	int ret;
> +
> +	sd_init_req(&hdr, SD_OP_COMPLETE_RECOVERY);
> +	hdr.epoch = rw->epoch;
> +	hdr.flags = SD_FLAG_CMD_WRITE;
> +	hdr.data_length = sizeof(sys->this_node);
> +
> +	ret = exec_local_req(&hdr, &sys->this_node);

Why not send request directly rather than send it via gateway?

Thanks,
Yuan



More information about the sheepdog mailing list