bool Request::should_complete(int r) {
CephContext *cct = m_image_ctx.cct;
- ldout(cct, 20) << &m_image_ctx << " should_complete: r=" << r << dendl;
+ ldout(cct, 20) << this << " should_complete: r=" << r << dendl;
switch (m_state)
{
m_num_objs = Striper::get_num_objects(m_image_ctx.layout, m_new_size);
std::string oid(ObjectMap::object_map_name(m_image_ctx.id, m_snap_id));
- ldout(cct, 5) << &m_image_ctx << " resizing on-disk object map: "
+ ldout(cct, 5) << this << " resizing on-disk object map: "
+ << "ictx=" << &m_image_ctx << ", "
<< "oid=" << oid << ", num_objs=" << m_num_objs << dendl;
librados::ObjectWriteOperation op;
void ResizeRequest::finish_request() {
CephContext *cct = m_image_ctx.cct;
- ldout(cct, 5) << &m_image_ctx << " resizing in-memory object map: "
+ ldout(cct, 5) << this << " resizing in-memory object map: "
<< m_num_objs << dendl;
resize(m_object_map, m_num_objs, m_default_object_state);
}
// safe to update in-memory state first without handling rollback since any
// failures will invalidate the object map
std::string oid(ObjectMap::object_map_name(m_image_ctx.id, m_snap_id));
- ldout(cct, 20) << &m_image_ctx << " updating object map"
- << ": oid=" << oid << ", ["
+ ldout(cct, 20) << this << " updating object map"
+ << ": ictx=" << &m_image_ctx << ", oid=" << oid << ", ["
<< m_start_object_no << "," << m_end_object_no << ") = "
<< (m_current_state ?
stringify(static_cast<uint32_t>(*m_current_state)) : "")
}
void UpdateRequest::finish_request() {
- ldout(m_image_ctx.cct, 20) << &m_image_ctx << " on-disk object map updated"
+ ldout(m_image_ctx.cct, 20) << this << " on-disk object map updated"
<< dendl;
}