Comment 2 for bug 1811044

Revision history for this message
Matthew Oliver (matt-0) wrote :

Another option is this: http://paste.openstack.org/show/741005/

This is a little more complecated but in essence if an X-Verrsions-Location metadata key is found in container metadata (legacy metadata key) and the new sysmeta versions-location metadata key is not found, return the legacy value under the new key.

This allows us to pretty much deprecate the old versions location code (minus the above) from the code base, because the middleware will always get the versions-location from container-info sysmeta.

This also means _all_ versioning can be disabled (legacy and new) via the `allow_versioned_writes` versioned_writes middleware option.