From: Yehuda Sadeh Date: Wed, 29 Jun 2016 21:50:12 +0000 (-0700) Subject: rgw: finish error_repo cr in stop_spawned_services() X-Git-Tag: v10.2.3~62^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3f76e4acf243dda26c44ae95919b3d4444bd7d88;p=ceph.git rgw: finish error_repo cr in stop_spawned_services() Fixes: http://tracker.ceph.com/issues/16530 Need to call finish, otherwise drain_all() wouldn't be able to drain it. Signed-off-by: Yehuda Sadeh (cherry picked from commit 492bb608733c83a5d85319cf47c4d86402344376) --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 434e0f37014a..cad3be7b560f 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -1182,6 +1182,7 @@ public: void stop_spawned_services() { lease_cr->go_down(); if (error_repo) { + error_repo->finish(); error_repo->put(); error_repo = NULL; }