1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-04-01 18:50:41 +03:00

Remove test for first_time with FIXME

Workaround for the current code with big FIXME,
since proper solution for pvmove needs to be developed.

Commiting this only for the purpose to get cluster testing covered.
This commit is contained in:
Zdenek Kabelac 2011-10-11 08:51:02 +00:00
parent 2c80ace622
commit fcbb8e5c5d

View File

@ -369,8 +369,9 @@ static int _update_metadata(struct cmd_context *cmd, struct volume_group *vg,
}
if (!_suspend_lvs(cmd, first_time, lv_mirr, lvs_changed, vg)) {
log_error("ABORTING: Volume group metadata update failed.");
if (!first_time && !revert_lv(cmd, lv_mirr))
log_error("ABORTING: Volume group metadata update failed. (first_time: %d)", first_time);
//FIXME: - currently this check breaks pvmove testing
if (/*!first_time &&*/ !revert_lv(cmd, lv_mirr))
stack;
return 0;
}