X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fclient%2FMetaSession.h;h=301306263e66ee7093e8279f2563ed4cb588b601;hb=aee94f6923ba628a85d855d0c5316d0da78bfa2a;hp=ad74ae58af2e1c740b32a06d5fb8006e045c1766;hpb=27f45121cc74e31203777ad565f78d8aad9b92a2;p=ceph.git diff --git a/ceph/src/client/MetaSession.h b/ceph/src/client/MetaSession.h index ad74ae58a..301306263 100644 --- a/ceph/src/client/MetaSession.h +++ b/ceph/src/client/MetaSession.h @@ -62,6 +62,13 @@ struct MetaSession { MetaSession(mds_rank_t mds_num, ConnectionRef con, const entity_addrvec_t& addrs) : mds_num(mds_num), con(con), addrs(addrs) { } + ~MetaSession() { + ceph_assert(caps.empty()); + ceph_assert(dirty_list.empty()); + ceph_assert(flushing_caps.empty()); + ceph_assert(requests.empty()); + ceph_assert(unsafe_requests.empty()); + } xlist &get_dirty_list() { return dirty_list; }