diff options
author | Lars Ellenberg <[email protected]> | 2016-06-14 00:26:32 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2016-06-13 21:43:07 -0600 |
commit | f2d3d75b66fc80c69ae2813cba72c2b5ad755f3e (patch) | |
tree | 2e4cc1dec03e90a12495152fdbe9a3b672723634 /lib/test-string_helpers.c | |
parent | 9104d31a759fbade8505f38f92f4dde719957826 (diff) |
drbd: sync_handshake: handle identical uuids with current (frozen) Primary
If in a two-primary scenario, we lost our peer, freeze IO,
and are still frozen (no UUID rotation) when the peer comes back
as Secondary after a hard crash, we will see identical UUIDs.
The "rule_nr = 40" chose to use the "CRASHED_PRIMARY" bit as
arbitration, but that would cause the still running (but frozen) Primary
to become SyncTarget (which it typically refuses), and the handshake is
declined.
Fix: check current roles.
If we have *one* current primary, the Primary wins.
(rule_nr = 41)
Since that is a protocol change, use the newly introduced DRBD_FF_WSAME
to determine if rule_nr = 41 can be applied.
Signed-off-by: Philipp Reisner <[email protected]>
Signed-off-by: Lars Ellenberg <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions