| 23 | } |
| 24 | |
| 25 | void MetaSession::dump(Formatter *f, bool cap_dump) const |
| 26 | { |
| 27 | f->dump_int("mds", mds_num); |
| 28 | f->dump_object("addrs", addrs); |
| 29 | f->dump_unsigned("seq", seq); |
| 30 | f->dump_unsigned("cap_gen", cap_gen); |
| 31 | f->dump_stream("cap_ttl") << cap_ttl; |
| 32 | f->dump_stream("last_cap_renew_request") << last_cap_renew_request; |
| 33 | f->dump_unsigned("cap_renew_seq", cap_renew_seq); |
| 34 | f->dump_int("num_caps", caps.size()); |
| 35 | if (cap_dump) { |
| 36 | f->open_array_section("caps"); |
| 37 | for (const auto& cap : caps) { |
| 38 | f->dump_object("cap", *cap); |
| 39 | } |
| 40 | f->close_section(); |
| 41 | } |
| 42 | f->dump_string("state", get_state_name()); |
| 43 | } |
| 44 | |
| 45 | void MetaSession::enqueue_cap_release(inodeno_t ino, uint64_t cap_id, ceph_seq_t iseq, |
| 46 | ceph_seq_t mseq, epoch_t osd_barrier) |
nothing calls this directly
no test coverage detected