From 7a34f7a30b4a4e8efeac9ba420466271ccbd41ef Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 21 Aug 2024 04:27:49 +0200 Subject: Merging upstream version 18.2.4. Signed-off-by: Daniel Baumann --- src/mds/SessionMap.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/mds/SessionMap.h') diff --git a/src/mds/SessionMap.h b/src/mds/SessionMap.h index 360dd66a2..623f20a0e 100644 --- a/src/mds/SessionMap.h +++ b/src/mds/SessionMap.h @@ -682,6 +682,16 @@ public: void remove_session(Session *s); void touch_session(Session *session); + void add_to_broken_root_squash_clients(Session* s) { + broken_root_squash_clients.insert(s); + } + uint64_t num_broken_root_squash_clients() const { + return broken_root_squash_clients.size(); + } + auto const& get_broken_root_squash_clients() const { + return broken_root_squash_clients; + } + Session *get_oldest_session(int state) { auto by_state_entry = by_state.find(state); if (by_state_entry == by_state.end() || by_state_entry->second->empty()) @@ -849,6 +859,8 @@ private: bool validate_and_encode_session(MDSRank *mds, Session *session, bufferlist& bl); void apply_blocklist(const std::set& victims); + + std::set broken_root_squash_clients; }; std::ostream& operator<<(std::ostream &out, const Session &s); -- cgit v1.2.3