Greg Padgett has uploaded a new change for review. Change subject: broker: fix padding of metadata blocks ......................................................................
broker: fix padding of metadata blocks The metadata blocks were being padded and thrown away instead of assigned, which could cause garbage in the metadata on disk. Change-Id: Ifc4cfac8bbe9da4fcc72872828bbf84b752e1551 Signed-off-by: Greg Padgett <[email protected]> --- M ovirt_hosted_engine_ha/broker/storage_broker.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-ha refs/changes/10/19710/1 diff --git a/ovirt_hosted_engine_ha/broker/storage_broker.py b/ovirt_hosted_engine_ha/broker/storage_broker.py index b1c3507..8a1e019 100644 --- a/ovirt_hosted_engine_ha/broker/storage_broker.py +++ b/ovirt_hosted_engine_ha/broker/storage_broker.py @@ -105,7 +105,7 @@ service_type, host_id, path, offset) byte_data = base64.b16decode(data) - byte_data.ljust(constants.HOST_SEGMENT_BYTES, '\0') + byte_data = byte_data.ljust(constants.HOST_SEGMENT_BYTES, '\0') with self._storage_access_lock: f = None try: -- To view, visit http://gerrit.ovirt.org/19710 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ifc4cfac8bbe9da4fcc72872828bbf84b752e1551 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-hosted-engine-ha Gerrit-Branch: master Gerrit-Owner: Greg Padgett <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
