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: ses5-milestone5~543^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10031%2Fhead;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 --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 5ebdd4c91864..4f700696c9da 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -1267,6 +1267,7 @@ public: void stop_spawned_services() { lease_cr->go_down(); if (error_repo) { + error_repo->finish(); error_repo->put(); error_repo = NULL; }