Fix wd_authkey bug in that a request to add new node to the clusetr is rejected by...
authorYugo Nagata <nagata@sraoss.co.jp>
Fri, 1 Sep 2017 07:27:46 +0000 (16:27 +0900)
committerYugo Nagata <nagata@sraoss.co.jp>
Fri, 1 Sep 2017 07:27:46 +0000 (16:27 +0900)
commitf809426aaa416c6e1dfdda2e3aed3246442f13fb
tree5b1748c9eb7ee6bbbc1916d96bfe0799815aceda
parent4a1f269a74ca6725790c780211bdcb8e1acc7bc3
Fix wd_authkey bug in that a request to add new node to the clusetr is rejected by master

This is a bug is due to the following commit.

commit 39de4a11d48b0ca50a4e8a9538265441994298b8
Author: Muhammad Usama <m.usama@gmail.com>
Date:   Thu Mar 30 02:00:49 2017 +0500

    Enhancing the handling of split-brain scenario by the watchdog.

This changed the definition of tv_sec that is used to check wd_authkey so
that this was affected by the clock of OS. So, if there is a lag between
two nodes' clocks, the wd_authkey check fails.
src/watchdog/watchdog.c