| 19 | using std::string; |
| 20 | |
| 21 | Inode::~Inode() |
| 22 | { |
| 23 | delay_cap_item.remove_myself(); |
| 24 | dirty_cap_item.remove_myself(); |
| 25 | snaprealm_item.remove_myself(); |
| 26 | |
| 27 | if (snapdir_parent) { |
| 28 | snapdir_parent->flags &= ~I_SNAPDIR_OPEN; |
| 29 | snapdir_parent.reset(); |
| 30 | } |
| 31 | |
| 32 | if (!oset.objects.empty()) { |
| 33 | lsubdout(client->cct, client, 0) << __func__ << ": leftover objects on inode 0x" |
| 34 | << std::hex << ino << std::dec << dendl; |
| 35 | ceph_assert(oset.objects.empty()); |
| 36 | } |
| 37 | |
| 38 | if (!delegations.empty()) { |
| 39 | lsubdout(client->cct, client, 0) << __func__ << ": leftover delegations on inode 0x" |
| 40 | << std::hex << ino << std::dec << dendl; |
| 41 | ceph_assert(delegations.empty()); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | void Inode::print(std::ostream& out) const |
| 46 | { |
nothing calls this directly
no test coverage detected