]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: handle Journaler::recover errors in PurgeQueue 12786/head
authorJohn Spray <john.spray@redhat.com>
Fri, 3 Mar 2017 12:25:05 +0000 (12:25 +0000)
committerJohn Spray <john.spray@redhat.com>
Wed, 8 Mar 2017 10:27:03 +0000 (10:27 +0000)
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/PurgeQueue.cc

index af2ca3a2ad6576b42918203430aa57987c91dd42..f9617b81643b90c530272da506110ca210aedf12 100644 (file)
@@ -136,13 +136,16 @@ void PurgeQueue::open(Context *completion)
       dout(1) << "Purge Queue not found, assuming this is an upgrade and "
                  "creating it." << dendl;
       create(completion);
-    } else {
+    } else if (r == 0) {
       Mutex::Locker l(lock);
       dout(4) << "open complete" << dendl;
       if (r == 0) {
         journaler.set_writeable();
       }
       completion->complete(r);
+    } else {
+      derr << "Error " << r << " loading Journaler" << dendl;
+      on_error->complete(0);
     }
   }));
 }