提交 ed4da646 编写于 作者: M Michal Privoznik

qemuDomainRename: Don't leave a domain locked uppon fail

Well, yet again one case of 'goto cleanup' while 'goto endjob'
was needed. Sorry.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 32c6b190
......@@ -19943,7 +19943,7 @@ static int qemuDomainRename(virDomainPtr dom,
if (STREQ(vm->def->name, new_name)) {
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
_("Can't rename domain to itself"));
goto cleanup;
goto endjob;
}
if (VIR_STRDUP(new_dom_name, new_name) < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册