From 4efc4cab53163f8bf0ff22514805e7dbf26e3dae Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Tue, 17 Jan 2017 23:07:17 -0500 Subject: [PATCH] rgw_file: signal RGWLibFrontend shutdown correctly The shutdown member of RGWLibProcess should be set. Fixes: http://tracker.ceph.com/issues/18585 Signed-off-by: Matt Benjamin --- src/rgw/rgw_lib_frontend.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rgw/rgw_lib_frontend.h b/src/rgw/rgw_lib_frontend.h index 9f407f1c4d0..16bfe408dd3 100644 --- a/src/rgw/rgw_lib_frontend.h +++ b/src/rgw/rgw_lib_frontend.h @@ -32,6 +32,7 @@ namespace rgw { void run(); void checkpoint(); + void stop() { shutdown = true; } void register_fs(RGWLibFS* fs) { lock_guard guard(mtx); @@ -76,6 +77,11 @@ namespace rgw { int init(); + virtual void stop() { + RGWProcessFrontend::stop(); + get_process()->stop(); + } + RGWLibProcess* get_process() { return static_cast(pprocess); } -- 2.47.3