[sheepdog] [PATCH] sheep: no need to set SD_FLAG_CMD_WRITE for local request

levin li levin108 at gmail.com
Tue Aug 28 10:43:50 CEST 2012


On 08/28/2012 04:38 PM, Liu Yuan wrote:
> On 08/28/2012 04:14 PM, levin li wrote:
>> -	hdr.flags = SD_FLAG_CMD_WRITE;
>>  	hdr.data_length = sizeof(sys->this_node);
> 
> Why not? We do write &sys->this_node as data to transfer.
> 
> Thanks,
> Yuan
> 

For cluster requests we send data through cluster driver (corosync or zookeeper),
in which case SD_FLAG_CMD_WRITE is never used.

thanks,

levin



More information about the sheepdog mailing list