mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 13:17:58 +03:00
qemu: drop write-only agentStart
This commit is contained in:
parent
6ba861ae36
commit
3c1c56781d
@ -3646,7 +3646,6 @@ qemuDomainObjEnterAgent(virDomainObjPtr obj)
|
||||
priv->agent, obj, obj->def->name);
|
||||
virObjectLock(priv->agent);
|
||||
virObjectRef(priv->agent);
|
||||
ignore_value(virTimeMillisNow(&priv->agentStart));
|
||||
virObjectUnlock(obj);
|
||||
}
|
||||
|
||||
@ -3670,7 +3669,6 @@ qemuDomainObjExitAgent(virDomainObjPtr obj)
|
||||
VIR_DEBUG("Exited agent (agent=%p vm=%p name=%s)",
|
||||
priv->agent, obj, obj->def->name);
|
||||
|
||||
priv->agentStart = 0;
|
||||
if (!hasRefs)
|
||||
priv->agent = NULL;
|
||||
}
|
||||
|
@ -178,7 +178,6 @@ struct _qemuDomainObjPrivate {
|
||||
|
||||
qemuAgentPtr agent;
|
||||
bool agentError;
|
||||
unsigned long long agentStart;
|
||||
|
||||
bool gotShutdown;
|
||||
bool beingDestroyed;
|
||||
|
@ -231,7 +231,6 @@ qemuConnectAgent(virQEMUDriverPtr driver, virDomainObjPtr vm)
|
||||
* deleted while the agent is active */
|
||||
virObjectRef(vm);
|
||||
|
||||
ignore_value(virTimeMillisNow(&priv->agentStart));
|
||||
virObjectUnlock(vm);
|
||||
|
||||
agent = qemuAgentOpen(vm,
|
||||
@ -239,7 +238,6 @@ qemuConnectAgent(virQEMUDriverPtr driver, virDomainObjPtr vm)
|
||||
&agentCallbacks);
|
||||
|
||||
virObjectLock(vm);
|
||||
priv->agentStart = 0;
|
||||
|
||||
if (agent == NULL)
|
||||
virObjectUnref(vm);
|
||||
|
Loading…
Reference in New Issue
Block a user