Whamcloud - gitweb
LU-4743 osp: continue llog processing 74/9574/3
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Tue, 11 Mar 2014 05:10:01 +0000 (09:10 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 21 Mar 2014 14:03:45 +0000 (14:03 +0000)
when unexpected record type is met

Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Change-Id: I3dd45f501192bc6dd3bfddb550fd455ae319b923
Reviewed-on: http://review.whamcloud.com/9574
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
lustre/osp/osp_sync.c

index e311801..b216ece 100644 (file)
@@ -677,9 +677,10 @@ static int osp_sync_process_record(const struct lu_env *env,
                rc = osp_sync_new_setattr_job(d, llh, rec);
                break;
        default:
                rc = osp_sync_new_setattr_job(d, llh, rec);
                break;
        default:
-               CERROR("unknown record type: %x\n", rec->lrh_type);
-                      rc = -EINVAL;
-                      break;
+               CERROR("%s: unknown record type: %x\n", d->opd_obd->obd_name,
+                      rec->lrh_type);
+               /* we should continue processing */
+               return 0;
        }
 
        if (likely(rc == 0)) {
        }
 
        if (likely(rc == 0)) {