]> 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>
Thu, 22 Jun 2023 18:33:33 +0000 (14:33 -0400)
Fixes: 138fea6a7638697acb1a9e824db7b8d04ad8d671
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDCache.cc

index 77303ddd8adabaee97d59ba94323f81893e9511c..9d8bd04d66c54aa1d483de30ca478220afa22c78 100644 (file)
@@ -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) {