]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: dont reuse stale RGWObjectCtx for get_bucket_info() 17835/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 22 Sep 2017 16:03:57 +0000 (12:03 -0400)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 2 Oct 2017 20:49:28 +0000 (22:49 +0200)
commit37ddfc61c3376afeccfe7a8029412b9a38401bfc
tree5b5c37f7c3861cd0238547bce0aedf2e775418a2
parentdfe42384fbce90ec4c315e10ebd6b4fc4234827b
rgw: dont reuse stale RGWObjectCtx for get_bucket_info()

if the earlier call to store->get_bucket_entrypoint_info() failed with
ENOENT, the obj_ctx will cache exists=false.
put_bucket_entrypoint_info() doesn't invalidate that, so this call to
get_bucket_info() was reading from a stale cache and failing with ENOENT

Fixes: http://tracker.ceph.com/issues/21506
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 3f4f760a85f162262c5b419e9cf78966c7299f0a)
src/rgw/rgw_bucket.cc