diff options
author | Thiago da Silva <thiagodasilva@gmail.com> | 2019-12-10 16:32:47 +1100 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2020-01-24 17:15:57 -0800 |
commit | 26ff2eb1cbec8052797dc5e28af3a8049d5e5dfb (patch) | |
tree | aa3f0529df480317bf844f355186d881768a53c1 /swift/proxy/controllers/base.py | |
parent | 9548111e24c5cb35e4d4990b9707d462e53692f2 (diff) | |
download | swift-26ff2eb1cbec8052797dc5e28af3a8049d5e5dfb.tar.gz |
container-sync: Sync static links similar to how we sync SLOs
This allows static symlinks to be synced before their target. Dynamic
symlinks could already be synced even if target object has not been
synced, but static links previously required that target object existed
before it can be PUT. Now, have container_sync middleware plumb in an
override like it does for SLO.
Change-Id: I3bfc62b77b247003adcee6bd4d374168bfd6707d
Diffstat (limited to 'swift/proxy/controllers/base.py')
-rw-r--r-- | swift/proxy/controllers/base.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/swift/proxy/controllers/base.py b/swift/proxy/controllers/base.py index 87da0aa5f..831864aba 100644 --- a/swift/proxy/controllers/base.py +++ b/swift/proxy/controllers/base.py @@ -179,6 +179,7 @@ def headers_to_container_info(headers, status_int=HTTP_OK): 'status': status_int, 'read_acl': headers.get('x-container-read'), 'write_acl': headers.get('x-container-write'), + 'sync_to': headers.get('x-container-sync-to'), 'sync_key': headers.get('x-container-sync-key'), 'object_count': headers.get('x-container-object-count'), 'bytes': headers.get('x-container-bytes-used'), |