Skip to content

Commit

Permalink
mds: trim cache during standby-replay
Browse files Browse the repository at this point in the history
Fixes: 138fea6
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
  • Loading branch information
batrick committed Jun 22, 2023
1 parent 39e5f09 commit e2b2e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mds/MDCache.cc
Expand Up @@ -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) {
Expand Down

0 comments on commit e2b2e8e

Please sign in to comment.