1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +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; stack;
goto revert_new_lv; goto revert_new_lv;
} }
/* When change is activating, don't duplicate backup call */
backup(vg); if (!is_change_activating(lp->activate))
backup(vg);
} }
if (is_change_activating(lp->activate)) { if (is_change_activating(lp->activate)) {
/* Send message so that table preload knows new thin */ /* Send message so that table preload knows new thin */