1
0
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:
Petr Rockai 2010-10-18 17:27:10 +00:00
parent 06ee3f7259
commit 123b90ce05

View File

@ -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;
}