On 07/28/2010 10:08 PM, Wengang Wang wrote:
>>   static int dlm_cancel_join_handler(struct o2net_msg *msg, u32 len, void 
>> *data,
>>                                 void **ret_data)
>>   {
>> @@ -1233,6 +1437,15 @@ static int dlm_try_to_join_domain(struct dlm_ctxt 
>> *dlm)
>>      set_bit(dlm->node_num, dlm->domain_map);
>>      spin_unlock(&dlm->spinlock);
>>
>> +    /* Support for global heartbeat was added in 1.1 */
>> +    if (dlm_protocol.pv_major>= 1&&  dlm_protocol.pv_minor>  0) {
>> +            status = dlm_send_hbregions(dlm, ctxt->yes_resp_map);
>> +            if (status) {
>> +                    mlog_errno(status);
>> +                    goto bail;
>> +            }
>> +    }
>> +
>>      
> How does the version number grows? Is it possible from 1.1 to 2.0?
> If that's possible, should it be
>
> +     if (dlm_protocol.pv_major>  1 || dlm_protocol.pv_minor>  0) {
>
>    

You are correct. Good catch.

_______________________________________________
Ocfs2-devel mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/ocfs2-devel

Reply via email to