]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: missing lock when re-sending update_sync_point 19011/head
authorMykola Golub <to.my.trociny@gmail.com>
Sat, 18 Nov 2017 20:18:37 +0000 (22:18 +0200)
committerMykola Golub <to.my.trociny@gmail.com>
Sun, 19 Nov 2017 07:45:41 +0000 (09:45 +0200)
Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
src/tools/rbd_mirror/ImageSync.cc

index 5c50b5fc79e5e87a9e1a08383682bbb912fd77f2..1c3f84e04d885a1690dad3090a5c55808f876fcc 100644 (file)
@@ -351,6 +351,7 @@ void ImageSync<I>::handle_update_sync_point(int r) {
     if (m_image_copy_request != nullptr) {
       m_update_sync_ctx = new FunctionContext(
         [this](int r) {
+          Mutex::Locker locker(m_lock);
           this->send_update_sync_point();
         });
       m_timer->add_event_after(m_update_sync_point_interval,