Skip to content

Instantly share code, notes, and snippets.

@portante
Created September 24, 2013 04:42
Show Gist options
  • Select an option

  • Save portante/6680469 to your computer and use it in GitHub Desktop.

Select an option

Save portante/6680469 to your computer and use it in GitHub Desktop.
Callers of normalize_timestamp() in the proxy server. For each module, each method listed indented 4 spaces are direct callers of normalize_timestamp(). Each subsequently indented method indicates the callers of that method. Those lines beginning with "*" indicate additional ways that method uses it.
swift/proxy/controllers/base.py
generate_request_headers() -- time.time()
GETorHEAD_base()
autocreate_account() -- time.time()
swift/proxy/controllers/account.py
generate_request_headers() -- time.time()
PUT()
POST()
DELETE()
swift/proxy/controllers/obj.py
generate_request_headers() -- time.time()
_backend_requests()
POST(fast)
PUT()
DELETE()
POST(fast) -- time.time()
PUT() -- time.time() or req.headers['X-Timestamp']
* comparison to swift_x_timestamp
* normalize of swift_x_timestamp for versioning, value from x-timestamp response from GETorHEAD_base
DELETE() -- time.time() or req.headers['X-Timestamp']
swift/proxy/controllers/container.py
generate_request_headers() -- time.time()
POST()
_backend_requests()
PUT()
DELETE()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment