]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix unlock of shared lock in RGWDataChangesLog 29538/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 7 Aug 2019 17:55:03 +0000 (13:55 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 7 Aug 2019 18:02:49 +0000 (14:02 -0400)
commit553d97ca959ffd4f1e11848564a286da375175bf
tree3ac62508a340739b7778b574db3a044f7ef3dc9d
parentd9a385da8c1e2d14a7b3b008d83e0ac0b9723fcb
rgw: fix unlock of shared lock in RGWDataChangesLog

std::shared_mutex expects a call to unlock_shared() after lock_shared().
use the std::shared_lock guard to make it more obviously correct

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