Allow X-History-Location versioned_writes

Versioned Objects in Swift now use a middleware that is added to the
pipeline instead of the "allow_versions" in the container config. These
have 2 different Headers, so to prevent "X-Versions-Location" from not
working the "allow_versions" in the container config is left in place.

This patch adds the middleware by default and sets the Versioned Objects
support to be on. This is the upstream default and the deployer would
still need to set the "X-History-Location" header on a container to
utilise the feature.

Change-Id: I88811fd77fad8d2241448ca5ffb565fa7d704a00
This commit is contained in:
Andy McCrae 2016-11-30 11:09:37 +00:00
parent e69545f1ec
commit de7ab0a800
3 changed files with 13 additions and 0 deletions

View File

@ -76,6 +76,7 @@ swift_middleware_list:
- account-quotas
- slo
- dlo
- versioned_writes
- proxy-logging
- proxy-server

View File

@ -0,0 +1,8 @@
---
features:
- Swift ``versioned_writes`` middleware is added to the
pipeline by default. Additionally the
``allow_versioned_writes`` settings in the middleware
configuration is set to ``True``. This follows the
Swift defaults, and enables the use of the
``X-History-Location`` metadata Header.

View File

@ -172,6 +172,10 @@ use = egg:swift#slo
[filter:dlo]
use = egg:swift#dlo
[filter:versioned_writes]
use = egg:swift#versioned_writes
allow_versioned_writes = True
[filter:account-quotas]
use = egg:swift#account_quotas