From: Patrick Donnelly Date: Wed, 12 Oct 2022 19:48:51 +0000 (-0400) Subject: mds: trim cache during standby-replay X-Git-Tag: v18.2.4~305^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1bd6631aacacbe65651362f12eafd3dfcd3c9bec;p=ceph.git mds: trim cache during standby-replay Fixes: 138fea6a7638697acb1a9e824db7b8d04ad8d671 Signed-off-by: Patrick Donnelly (cherry picked from commit e2b2e8eb74c4d5cf06a5a2cb872a30b508bf75a2) --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 2ea13155ed49..60858e65c1f7 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -13506,7 +13506,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) {