bufferlist bl;
string oid = image_ctx.get_object_name(m_object_no);
- auto req = new io::ObjectWriteRequest(&image_ctx, oid, m_object_no, 0,
- bl, m_snapc, this, 0);
+ auto req = new io::ObjectWriteRequest<I>(&image_ctx, oid, m_object_no, 0,
+ bl, m_snapc, 0, {}, this);
if (!req->has_parent()) {
// stop early if the parent went away - it just means
// another flatten finished first or the image was resized