From 9238a58afb11da65b3f316c3151aa5aa56f54d67 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Tue, 11 Mar 2014 09:10:01 +0400 Subject: [PATCH] LU-4743 osp: continue llog processing when unexpected record type is met Signed-off-by: Alex Zhuravlev Change-Id: I3dd45f501192bc6dd3bfddb550fd455ae319b923 Reviewed-on: http://review.whamcloud.com/9574 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Faccini Bruno --- lustre/osp/osp_sync.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lustre/osp/osp_sync.c b/lustre/osp/osp_sync.c index e311801..b216ece 100644 --- a/lustre/osp/osp_sync.c +++ b/lustre/osp/osp_sync.c @@ -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: - 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)) { -- 1.8.3.1