X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fllog_cat.c;h=e7114cf246bfa7565a71be956ade0c8253e39573;hp=853b17e888ec2dcc0ab49c0fdf13fe8eb1ff179f;hb=97df2f4cae374130c057cbf1168ad1427c96cbc5;hpb=897580eb1562e0509bbe8ea72a273ed71f878eaa;ds=inline diff --git a/lustre/obdclass/llog_cat.c b/lustre/obdclass/llog_cat.c index 853b17e..e7114cf 100644 --- a/lustre/obdclass/llog_cat.c +++ b/lustre/obdclass/llog_cat.c @@ -550,9 +550,10 @@ static int llog_cat_process_cb(const struct lu_env *env, } /* clean old empty llogs, do not consider current llog in use */ + /* ignore remote (lgh_obj=NULL) llogs */ hdr = llh->lgh_hdr; if ((hdr->llh_flags & LLOG_F_ZAP_WHEN_EMPTY) && - hdr->llh_count == 1 && + hdr->llh_count == 1 && cat_llh->lgh_obj != NULL && llh != cat_llh->u.chd.chd_current_log) { rc = llog_destroy(env, llh); if (rc)