提交 d2c77e06 编写于 作者: C Cole Robinson

Fix test driver 'save' deadlock

上级 b44af714
Mon Mar 16 13:12:59 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/test.c: Fix test driver 'save' deadlock
Mon Mar 16 13:52:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
Support SASL auth for VNC server.
......
......@@ -1172,8 +1172,6 @@ cleanup:
return ret;
}
static char *testDomainDumpXML(virDomainPtr domain, int flags);
#define TEST_SAVE_MAGIC "TestGuestMagic"
static int testDomainSave(virDomainPtr domain,
......@@ -1196,7 +1194,10 @@ static int testDomainSave(virDomainPtr domain,
goto cleanup;
}
xml = testDomainDumpXML(domain, 0);
xml = virDomainDefFormat(domain->conn,
privdom->def,
VIR_DOMAIN_XML_SECURE);
if (xml == NULL) {
virReportSystemError(domain->conn, errno,
_("saving domain '%s' failed to allocate space for metadata"),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册