Whamcloud - gitweb
LU-14158 mdc: process changelogs_catalog from the oldest rec 86/40786/2
authorEtienne AUJAMES <eaujames@ddn.com>
Fri, 27 Nov 2020 20:26:15 +0000 (21:26 +0100)
committerOleg Drokin <green@whamcloud.com>
Tue, 22 Dec 2020 05:28:19 +0000 (05:28 +0000)
commitad4c8633498848c2f388942916830b021b5ba350
tree44a96e107e5550f6de9ecf9b2abba0a418976e31
parent73cde07045e12a53906ac9f5b05f81dc507f051f
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 <eaujames@ddn.com>
Change-Id: Ib00a4373d87fd63bfb5d05731f1fdbd286c0b6f5
Reviewed-on: https://review.whamcloud.com/40786
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdc/mdc_changelog.c