]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: trim cache during standby-replay
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 12 Oct 2022 19:48:51 +0000 (15:48 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 29 Nov 2023 13:36:21 +0000 (08:36 -0500)
Fixes: 138fea6a7638697acb1a9e824db7b8d04ad8d671
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit e2b2e8eb74c4d5cf06a5a2cb872a30b508bf75a2)

src/mds/MDCache.cc

index 2ea13155ed491a2bd8c75a6afe32be990a7b2283..60858e65c1f7524fb31f0f70e69d04ee4f35f649 100644 (file)
@@ -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) {