]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: image map shut down should reset task context 21300/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 9 Apr 2018 04:33:32 +0000 (00:33 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 10 Apr 2018 20:32:13 +0000 (16:32 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd_mirror/ImageMap.cc

index bc226c1c5ac4328e0b2a1ba84229b0be4bae1ab3..5a674c9c67c4af0511b38671efe4578d8426b106 100644 (file)
@@ -479,6 +479,7 @@ void ImageMap<I>::shut_down(Context *on_finish) {
 
     if (m_timer_task != nullptr) {
       m_threads->timer->cancel_event(m_timer_task);
+      m_timer_task = nullptr;
     }
   }