Whamcloud - gitweb
LU-1749 llog: MDT should work if cancel llog failed (-ESTALE)
authorEmoly Liu <emoly.liu@intel.com>
Wed, 5 Dec 2012 06:43:56 +0000 (14:43 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Dec 2012 21:24:13 +0000 (16:24 -0500)
Cancel catlog may be stale, in this case MDT should continue to work.

port of b2_3 patch e5d5cd20169b476cdb4fe4857d64aef4bf03d497

Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Signed-off-by: Liu Ying <emoly.liu@intel.com>
Change-Id: I85d571a953b2a34d51d586595e271933a016b04f
Reviewed-on: http://review.whamcloud.com/4742
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/llog_obd.c

index 17c440d..f83a050 100644 (file)
@@ -314,9 +314,9 @@ static int cat_cancel_cb(struct llog_handle *cathandle,
 
         rc = llog_cat_id2handle(cathandle, &loghandle, &lir->lid_id);
         if (rc) {
-                CERROR("Cannot find handle for log "LPX64"\n",
-                       lir->lid_id.lgl_oid);
-                if (rc == -ENOENT) {
+                CERROR("Cannot find handle for log "LPX64": %d\n",
+                       lir->lid_id.lgl_oid, rc);
+                if (rc == -ENOENT || rc == -ESTALE) {
                         index = rec->lrh_index;
                         goto cat_cleanup;
                 }