[sheepdog] [PATCH] sheep: no need to set SD_FLAG_CMD_WRITE for local request
Liu Yuan
namei.unix at gmail.com
Tue Aug 28 10:56:36 CEST 2012
On 08/28/2012 04:14 PM, levin li wrote:
> From: levin li <xingke.lwp at taobao.com>
>
>
> Signed-off-by: levin li <xingke.lwp at taobao.com>
> ---
> sheep/recovery.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/sheep/recovery.c b/sheep/recovery.c
> index 59ac9d6..0033c6b 100644
> --- a/sheep/recovery.c
> +++ b/sheep/recovery.c
> @@ -346,7 +346,6 @@ static void notify_recovery_completion_work(struct work *work)
>
> 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);
>
Applied. Indeed, for local request, we already get the data.
Thanks,
Yuan
More information about the sheepdog
mailing list