]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: schedule header refresh after watch error 3456/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 21 Jan 2015 22:23:00 +0000 (17:23 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 23 Jan 2015 15:19:04 +0000 (10:19 -0500)
If a librados watch error occurs, it is possible that one
or more events were missed.  Therefore, flag the header as
dirty so that it will be reloaded after the next operation.

Fixes: #4092
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageWatcher.cc

index ede4c401c590470eb38036508650eedb933868cb..6207d40d48a0790dfb9ea4871977c6e9e2ebde50 100644 (file)
@@ -611,6 +611,7 @@ void ImageWatcher::reregister_watch() {
         return;
       }
     }
+    handle_header_update();
 
     if (lock_owner) {
       r = try_lock();