Whamcloud - gitweb
LU-6906 mgc: IR log failure should not stop mount
[fs/lustre-release.git] / lustre / mgc / mgc_request.c
index 01be9e2..1b537f6 100644 (file)
@@ -1974,8 +1974,16 @@ restart:
 
         if (cld_is_recover(cld)) {
                 rc = 0; /* this is not a fatal error for recover log */
-                if (rcl == 0)
+                if (rcl == 0) {
                         rc = mgc_process_recover_log(mgc, cld);
+                       if (rc != 0) {
+                               CERROR("%s: recover log %s failed: rc = %d"
+                                      "not fatal.\n", mgc->obd_name,
+                                      cld->cld_logname, rc);
+                               rc = 0;
+                               cld->cld_lostlock = 1;
+                       }
+               }
         } else {
                 rc = mgc_process_cfg_log(mgc, cld, rcl != 0);
         }