mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Avoid an extraneous orphans unlock in vgextend --restoremissing.
This commit is contained in:
parent
06ee3f7259
commit
123b90ce05
@ -133,7 +133,8 @@ int vgextend(struct cmd_context *cmd, int argc, char **argv)
|
||||
r = ECMD_PROCESSED;
|
||||
|
||||
bad:
|
||||
unlock_vg(cmd, VG_ORPHANS);
|
||||
if (!arg_count(cmd, restoremissing_ARG))
|
||||
unlock_vg(cmd, VG_ORPHANS);
|
||||
unlock_and_release_vg(cmd, vg, vg_name);
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user