From e2b2e8eb74c4d5cf06a5a2cb872a30b508bf75a2 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Wed, 12 Oct 2022 15:48:51 -0400 Subject: [PATCH] mds: trim cache during standby-replay Fixes: 138fea6a7638697acb1a9e824db7b8d04ad8d671 Signed-off-by: Patrick Donnelly --- src/mds/MDCache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5