Commit 5ae78ce7 authored by Lars Ellenberg's avatar Lars Ellenberg Committed by Philipp Reisner

drbd_set_role needs to bail out if the state change failed

fix for bug#252
Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 7cc08cdb
......@@ -344,6 +344,9 @@ int drbd_set_role(struct drbd_conf *mdev, enum drbd_role new_role, int force)
break;
}
if (r < SS_SUCCESS)
goto fail;
if (forced)
dev_warn(DEV, "Forced to consider local data as UpToDate!\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment