]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: meta log rest handlers avoid get_log()
authorCasey Bodley <cbodley@redhat.com>
Fri, 26 Feb 2016 17:28:41 +0000 (12:28 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 4 Mar 2016 22:04:09 +0000 (17:04 -0500)
commit762c075bb2b3cb0d388432a33966d27acc9e1e69
tree510c1e1827ac2d6627137e45146b0981854314ca
parentfaa60bc1a9d5db299aafb873991d10bcef9a51b1
rgw: meta log rest handlers avoid get_log()

RGWMetadataManager::get_log() will allocate a log and keep it in memory.
this could lead to a potential denial of service by making requests with
lots of different period ids

RGWMetadataLog if effectively stateless (the only state is a set of
modified_shards, which are not touched by any of the rest api calls), so
we can use a temporary instead of calling get_log()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest_log.cc