Merge pull request #30389 from batrick/i41835

mds: drive cap recall while dropping cache
This commit is contained in:
Venky Shankar 2019-09-17 18:01:22 +05:30 committed by GitHub
commit ecb2ab2f7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -329,7 +329,8 @@ private:
auto duration = std::chrono::duration<double>(now-recall_start).count();
MDSGatherBuilder *gather = new MDSGatherBuilder(g_ceph_context);
auto [throttled, count] = server->recall_client_state(gather, Server::RecallFlags::STEADY);
auto flags = Server::RecallFlags::STEADY|Server::RecallFlags::TRIM;
auto [throttled, count] = server->recall_client_state(gather, flags);
dout(10) << __func__
<< (throttled ? " (throttled)" : "")
<< " recalled " << count << " caps" << dendl;