1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: don't backup twice

This commit is contained in:
Zdenek Kabelac 2014-10-20 21:49:07 +02:00
parent a4788b4994
commit f2ea890423

View File

@ -7052,8 +7052,9 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg,
stack;
goto revert_new_lv;
}
backup(vg);
/* When change is activating, don't duplicate backup call */
if (!is_change_activating(lp->activate))
backup(vg);
}
if (is_change_activating(lp->activate)) {
/* Send message so that table preload knows new thin */