qemu: drop write-only agentStart

This commit is contained in:
Nikolay Shirokovskiy 2016-11-14 17:24:22 +03:00 committed by Maxim Nestratov
parent 6ba861ae36
commit 3c1c56781d
3 changed files with 0 additions and 5 deletions

View File

@ -3646,7 +3646,6 @@ qemuDomainObjEnterAgent(virDomainObjPtr obj)
priv->agent, obj, obj->def->name); priv->agent, obj, obj->def->name);
virObjectLock(priv->agent); virObjectLock(priv->agent);
virObjectRef(priv->agent); virObjectRef(priv->agent);
ignore_value(virTimeMillisNow(&priv->agentStart));
virObjectUnlock(obj); virObjectUnlock(obj);
} }
@ -3670,7 +3669,6 @@ qemuDomainObjExitAgent(virDomainObjPtr obj)
VIR_DEBUG("Exited agent (agent=%p vm=%p name=%s)", VIR_DEBUG("Exited agent (agent=%p vm=%p name=%s)",
priv->agent, obj, obj->def->name); priv->agent, obj, obj->def->name);
priv->agentStart = 0;
if (!hasRefs) if (!hasRefs)
priv->agent = NULL; priv->agent = NULL;
} }

View File

@ -178,7 +178,6 @@ struct _qemuDomainObjPrivate {
qemuAgentPtr agent; qemuAgentPtr agent;
bool agentError; bool agentError;
unsigned long long agentStart;
bool gotShutdown; bool gotShutdown;
bool beingDestroyed; bool beingDestroyed;

View File

@ -231,7 +231,6 @@ qemuConnectAgent(virQEMUDriverPtr driver, virDomainObjPtr vm)
* deleted while the agent is active */ * deleted while the agent is active */
virObjectRef(vm); virObjectRef(vm);
ignore_value(virTimeMillisNow(&priv->agentStart));
virObjectUnlock(vm); virObjectUnlock(vm);
agent = qemuAgentOpen(vm, agent = qemuAgentOpen(vm,
@ -239,7 +238,6 @@ qemuConnectAgent(virQEMUDriverPtr driver, virDomainObjPtr vm)
&agentCallbacks); &agentCallbacks);
virObjectLock(vm); virObjectLock(vm);
priv->agentStart = 0;
if (agent == NULL) if (agent == NULL)
virObjectUnref(vm); virObjectUnref(vm);