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>
delete async_rados;
}
+ delete lc;
+ lc = NULL;
+
delete gc;
gc = NULL;
delete obj_expirer;
obj_expirer = NULL;
-
- delete lc;
- lc = NULL;
delete rest_master_conn;