| 288 | |
| 289 | template<typename I> |
| 290 | void RemoveRequest<I>::remove_header_v2() { |
| 291 | ldout(m_cct, 20) << dendl; |
| 292 | |
| 293 | if (m_header_oid.empty()) { |
| 294 | m_header_oid = util::header_name(m_image_id); |
| 295 | } |
| 296 | |
| 297 | using klass = RemoveRequest<I>; |
| 298 | librados::AioCompletion *rados_completion = |
| 299 | create_rados_callback<klass, &klass::handle_remove_header_v2>(this); |
| 300 | int r = m_ioctx.aio_remove(m_header_oid, rados_completion); |
| 301 | ceph_assert(r == 0); |
| 302 | rados_completion->release(); |
| 303 | } |
| 304 | |
| 305 | template<typename I> |
| 306 | void RemoveRequest<I>::handle_remove_header_v2(int r) { |
nothing calls this directly
no test coverage detected