* Use this together with wait_for_map: this is a pre-check to avoid * allocating a Context for wait_for_map if we can see that we * definitely already have the epoch. * * This does *not* replace the need to handle the return value of * wait_for_map: just because we don't have it in this pre-check * doesn't mean we won't have it when calling back into wait_for_map, * since the objecter lock
| 2139 | * since the objecter lock is dropped in between. |
| 2140 | */ |
| 2141 | bool Objecter::have_map(const epoch_t epoch) |
| 2142 | { |
| 2143 | shared_lock rl(rwlock); |
| 2144 | if (osdmap->get_epoch() >= epoch) { |
| 2145 | return true; |
| 2146 | } else { |
| 2147 | return false; |
| 2148 | } |
| 2149 | } |
| 2150 | |
| 2151 | void Objecter::_kick_requests(OSDSession *session, |
| 2152 | map<uint64_t, LingerOp *>& lresend) |
no test coverage detected