]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc: always use finisher from wait_for_readable
authorJohn Spray <john.spray@redhat.com>
Fri, 2 Jun 2017 11:02:13 +0000 (12:02 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 19 Jun 2017 22:37:58 +0000 (23:37 +0100)
Fixes: http://tracker.ceph.com/issues/20165
Signed-off-by: John Spray <john.spray@redhat.com>
src/osdc/Journaler.cc

index ba18ff5534f7e85abd88e26ea9fc807d26e83fc8..ccf8590d8e43cda24073c8d1fd35fda8c0c2ae76 100644 (file)
@@ -1221,7 +1221,7 @@ void Journaler::wait_for_readable(Context *onreadable)
 {
   lock_guard l(lock);
   if (stopping) {
-    onreadable->complete(-EAGAIN);
+    finisher->queue(onreadable, -EAGAIN);
     return;
   }