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

Method invalidate

src/librbd/object_map/Request.cc:56–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56bool Request::invalidate() {
57 bool flags_set;
58 int r = m_image_ctx.test_flags(m_snap_id, RBD_FLAG_OBJECT_MAP_INVALID,
59 &flags_set);
60 if (r < 0 || flags_set) {
61 return true;
62 }
63
64 m_state = STATE_INVALIDATE;
65
66 std::shared_lock owner_locker{m_image_ctx.owner_lock};
67 std::unique_lock image_locker{m_image_ctx.image_lock};
68 InvalidateRequest<> *req = new InvalidateRequest<>(m_image_ctx, m_snap_id,
69 true,
70 create_callback_context());
71 req->send();
72 return false;
73}
74
75} // namespace object_map
76} // namespace librbd

Callers

nothing calls this directly

Calls 2

test_flagsMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected