Liran Zelkha has posted comments on this change.
Change subject: engine: Force VdsDynamic update on status change
......................................................................
Patch Set 2:
(1 comment)
....................................................
File
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsManager.java
Line 370: * @param dynamicData
Line 371: */
Line 372: public void UpdateDynamicData(VdsDynamic dynamicData) {
Line 373: if (dynamicData != null && _vds != null &&
_vds.getDynamicData() != null
Line 374: && (!dynamicData.equals(_vds.getDynamicData()) ||
dynamicData.getprevious_status() != dynamicData.getStatus())) {
Why not? The goal here is to only update data if VDSM sent us new data, or the
data is different than the DB. In the example you give, the command loads a VDS
from DB, and changes its values. So it won't be the same as the value in the
VDSManager, hence it will be updated.
Line 375:
DbFacade.getInstance().getVdsDynamicDao().update(dynamicData);
Line 376: } else {
Line 377: log.debug("Ignoring unneeded update of VDSDynamic");
Line 378: }
--
To view, visit http://gerrit.ovirt.org/21171
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I8814330970f467cc1c5170975efe192628ad365f
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liran Zelkha <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Liran Zelkha <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches