Comment 5 for bug 1636663

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to swift (master)

Reviewed: https://review.openstack.org/609860
Committed: https://git.openstack.org/cgit/openstack/swift/commit/?id=284bbdd391b24823f1f1154577b2b68575e7f7e9
Submitter: Zuul
Branch: master

commit 284bbdd391b24823f1f1154577b2b68575e7f7e9
Author: Tim Burke <email address hidden>
Date: Thu Oct 11 23:25:32 2018 +0000

    Add slo_manifest_hook callback

    ... to allow other middlewares to impose additional constraints on
    or make edits to SLO manifests before being written.

    The callback takes a single argument: the python list that represents
    the manifest to be written. All the normal list operations listed at
    https://docs.python.org/2/library/stdtypes.html#mutable-sequence-types
    are available to make changes to that before SLO serializes it as JSON.

    The callback may return a list of problematic segments; each item in the
    list should be a tuple of

        (quoted object name, description of problem)

    This will be useful both for s3api minimum segment size validation and
    creating tar large objects.

    Change-Id: I198c5196e0221a72b14597a06e5ce3c4b2bbf436
    Related-Bug: #1636663