Revision d0b67cbc snf-pithos-app/pithos/api/util.py

b/snf-pithos-app/pithos/api/util.py
63 63
                                 BACKEND_VERSIONING, BACKEND_FREE_VERSIONING,
64 64
                                 BACKEND_POOL_ENABLED, BACKEND_POOL_SIZE,
65 65
                                 BACKEND_BLOCK_SIZE, BACKEND_HASH_ALGORITHM,
66
                                 BACKEND_ARCHIPELAGO_CONF,
67
                                 BACKEND_XSEG_POOL_SIZE,
68
                                 BACKEND_MAP_CHECK_INTERVAL,
66 69
                                 RADOS_STORAGE, RADOS_POOL_BLOCKS,
67 70
                                 RADOS_POOL_MAPS, TRANSLATE_UUIDS,
68 71
                                 PUBLIC_URL_SECURITY, PUBLIC_URL_ALPHABET,
......
231 234
    response.override_serialization = True
232 235
    response['Content-Type'] = meta.get('type', 'application/octet-stream')
233 236
    response['Last-Modified'] = http_date(int(meta['modified']))
237
    response['Map-Exists'] = meta['available']
238
    response['Map-Checked-At'] = (
239
        http_date(int(meta['map_check_timestamp'])) if
240
        meta['map_check_timestamp'] is not None else '')
234 241
    if not restricted:
235 242
        response['X-Object-Hash'] = meta['hash']
236 243
        response['X-Object-UUID'] = meta['uuid']
......
1030 1037
    public_url_alphabet=PUBLIC_URL_ALPHABET,
1031 1038
    account_quota_policy=BACKEND_ACCOUNT_QUOTA,
1032 1039
    container_quota_policy=BACKEND_CONTAINER_QUOTA,
1033
    container_versioning_policy=BACKEND_VERSIONING)
1040
    container_versioning_policy=BACKEND_VERSIONING,
1041
    archipelago_conf_file=BACKEND_ARCHIPELAGO_CONF,
1042
    xseg_pool_size=BACKEND_XSEG_POOL_SIZE,
1043
    map_check_interval=BACKEND_MAP_CHECK_INTERVAL)
1034 1044

  
1035 1045
_pithos_backend_pool = PithosBackendPool(size=BACKEND_POOL_SIZE,
1036 1046
                                         **BACKEND_KWARGS)

Also available in: Unified diff