From: Patrick Donnelly Date: Wed, 12 Oct 2022 19:48:51 +0000 (-0400) Subject: mds: trim cache during standby-replay X-Git-Tag: v19.0.0~29^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e2b2e8eb74c4d5cf06a5a2cb872a30b508bf75a2;p=ceph.git mds: trim cache during standby-replay Fixes: 138fea6a7638697acb1a9e824db7b8d04ad8d671 Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 77303ddd8ad..9d8bd04d66c 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -13595,7 +13595,7 @@ void MDCache::upkeep_main(void) if (active_with_clients) { trim_client_leases(); } - if (is_open()) { + if (is_open() || mds->is_standby_replay()) { trim(); } if (active_with_clients) {