From: Etienne AUJAMES Date: Fri, 27 Nov 2020 20:26:15 +0000 (+0100) Subject: LU-14158 mdc: process changelogs_catalog from the oldest rec X-Git-Tag: 2.14.0-RC1~47 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=ad4c8633498848c2f388942916830b021b5ba350 LU-14158 mdc: process changelogs_catalog from the oldest rec The chlg_load use the LLOG_CAT_FIRST to process changelogs. This values will process record in the catalog always starting with index 0 to the newest record. So when catalog reach the end of indexes and when records are saved at the begining of catalog, the llog_cat_process will ignore records at the end. This patch change the "startcat" value LLOG_CAT_FIRST to 0 to scan the catalog from the oldest record to the newest. Fixes: e2150028 (LU-12553 mdc: polling mode for changelog reader) Signed-off-by: Etienne AUJAMES Change-Id: Ib00a4373d87fd63bfb5d05731f1fdbd286c0b6f5 Reviewed-on: https://review.whamcloud.com/40786 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Sebastien Buisson Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- diff --git a/lustre/mdc/mdc_changelog.c b/lustre/mdc/mdc_changelog.c index 27b92ee..ee11f6b 100644 --- a/lustre/mdc/mdc_changelog.c +++ b/lustre/mdc/mdc_changelog.c @@ -291,7 +291,7 @@ static int chlg_load(void *args) int rc; ENTRY; - crs->crs_last_catidx = -1; + crs->crs_last_catidx = 0; crs->crs_last_idx = 0; again: