drbd/fix-initial-sync-stop.patch

13 lines
697 B
Diff

diff -Naur drbd-9.0.7rc2+git.36abd387.orig/drbd/drbd_state.c drbd-9.0.7rc2+git.36abd387/drbd/drbd_state.c
--- drbd-9.0.7rc2+git.36abd387.orig/drbd/drbd_state.c 2017-05-25 13:50:27.713884206 +0800
+++ drbd-9.0.7rc2+git.36abd387/drbd/drbd_state.c 2017-05-25 15:47:29.354091027 +0800
@@ -3039,7 +3039,7 @@
send_new_state_to_all_peer_devices(state_change, n_device);
/* Outdated myself, or became D_UP_TO_DATE tell peers */
- if (disk_state[NEW] >= D_INCONSISTENT && disk_state[NEW] != disk_state[OLD] &&
+ if (disk_state[OLD] >= D_OUTDATED && disk_state[NEW] != disk_state[OLD] &&
repl_state[OLD] >= L_ESTABLISHED && repl_state[NEW] >= L_ESTABLISHED)
send_state = true;