]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: fix radosgw will crash when service is restarted during lifecycle processing
authorweiqiaomiao <wei.qiaomiao@zte.com.cn>
Sat, 22 Jul 2017 00:26:52 +0000 (08:26 +0800)
committerWei <wei.qiaomiao@zte.com.cn>
Mon, 24 Jul 2017 08:53:35 +0000 (16:53 +0800)
commit008b91c5fb0c3b030ac73f654e11158acbd74419
treefbd064b0680dc9259f1858bb5e44d840d9a83e0b
parent1e5c8aef7b63c3f2c68c856885571cfdb3e4acbd
rgw: fix radosgw will crash when service is restarted during lifecycle processing

in RGWRados::finalize(), store->gc is destructed before store->lc, if this func is called
(by service restart or others) when lifecycle processing, the lifecycle still use store->gc,
the radosgw daemon will crash.

Fixes: http://tracker.ceph.com/issues/20756
Signed-off-by: Wei Qiaomiao <wei.qiaomiao@zte.com.cn>
src/rgw/rgw_rados.cc