]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix unlock of shared lock in RGWCache 29558/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Thu, 8 Aug 2019 15:38:43 +0000 (17:38 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Fri, 9 Aug 2019 15:54:22 +0000 (17:54 +0200)
commit2b6dbe31c8f7fc12aef255e99b59f6926f4bbca9
tree3029721590638c7f74bf730d74bb03ade023ded3
parentd9a385da8c1e2d14a7b3b008d83e0ac0b9723fcb
rgw: fix unlock of shared lock in RGWCache

similar to https://github.com/ceph/ceph/pull/29538/ we unlock a shared_lock with
unlock causing a crash. Also scope the single line if statements to make the
code more concise

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_cache.cc