MCPcopy Create free account
hub / github.com/ceph/ceph / have_map

Method have_map

src/osdc/Objecter.cc:2141–2149  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

2139 * since the objecter lock is dropped in between.
2140 */
2141bool 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
2151void Objecter::_kick_requests(OSDSession *session,
2152 map<uint64_t, LingerOp *>& lresend)

Callers 3

handle_capsMethod · 0.80
handle_client_capsMethod · 0.80

Calls 1

get_epochMethod · 0.45

Tested by

no test coverage detected