[Ocfs2-devel] [PATCH 6/8] ocfs2/dlm: Add message DLM_QUERY_HBREGION
Sunil Mushran
sunil.mushran at oracle.com
Thu Jul 29 10:24:49 PDT 2010
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.
More information about the Ocfs2-devel
mailing list