mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
vg: use vg_copy_struct in second location
This commit is contained in:
parent
18babdc3ac
commit
77305127e4
@ -5175,10 +5175,12 @@ struct volume_group *vg_read(struct cmd_context *cmd, const char *vg_name, const
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!(vg->vg_committed = vg_copy_struct(vg))) {
|
||||
if (!(vg->vg_committed = import_vg_from_config_tree(cmd, vg->fid, vg->committed_cft))) {
|
||||
log_error("Failed to import written VG.");
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (vg->vg_precommitted)
|
||||
log_error(INTERNAL_ERROR "vg_read vg %p vg_precommitted %p", (void *)vg, (void *)vg->vg_precommitted);
|
||||
|
Loading…
x
Reference in New Issue
Block a user