From 0a73a5012aece3d0f7fd03a270cfe5067c1fafc8 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Thu, 3 Sep 2015 10:38:16 -0500 Subject: [PATCH] vgrename: add missing trace on error path --- tools/vgrename.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/vgrename.c b/tools/vgrename.c index 620345b48..316228a8d 100644 --- a/tools/vgrename.c +++ b/tools/vgrename.c @@ -149,8 +149,10 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path, if (!drop_cached_metadata(vg)) stack; - if (!lockd_rename_vg_before(cmd, vg)) + if (!lockd_rename_vg_before(cmd, vg)) { + stack; goto error; + } /* Change the volume group name */ vg_rename(cmd, vg, vg_name_new);