Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196843
b: refs/heads/master
c: 3a11a48
h: refs/heads/master
i:
  196841: fe3193d
  196839: 0b41a46
v: v3
  • Loading branch information
Adam Gandelman authored and Philipp Reisner committed May 17, 2010
1 parent 1d26e22 commit cacc340
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 979f5c7f1f6c8a532b943defb790d43b999934eb
refs/heads/master: 3a11a4878939e0e3c355bf3f52ef642a4cb6ba84
5 changes: 4 additions & 1 deletion trunk/drivers/block/drbd/drbd_receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2487,6 +2487,9 @@ static enum drbd_conns drbd_sync_handshake(struct drbd_conf *mdev, enum drbd_rol
hg > 0 ? "source" : "target");
}

if (abs(hg) == 100)
drbd_khelper(mdev, "initial-split-brain");

if (hg == 100 || (hg == -100 && mdev->net_conf->always_asbp)) {
int pcount = (mdev->state.role == R_PRIMARY)
+ (peer_role == R_PRIMARY);
Expand Down Expand Up @@ -2532,7 +2535,7 @@ static enum drbd_conns drbd_sync_handshake(struct drbd_conf *mdev, enum drbd_rol
* after an attempted attach on a diskless node.
* We just refuse to attach -- well, we drop the "connection"
* to that disk, in a way... */
dev_alert(DEV, "Split-Brain detected, dropping connection!\n");
dev_alert(DEV, "Split-Brain detected but unresolved, dropping connection!\n");
drbd_khelper(mdev, "split-brain");
return C_MASK;
}
Expand Down

0 comments on commit cacc340

Please sign in to comment.