if (snap_seq != CEPH_NOSNAP)
return -EROFS;
- c->io = this;
- queue_aio_write(c);
-
Context *onack = new C_aio_Ack(c);
Context *onsafe = new C_aio_Safe(c);
+ c->io = this;
+ queue_aio_write(c);
+
c->tid = objecter->write(oid, oloc,
off, len, snapc, bl, ut, 0,
onack, onsafe, &c->objver);
if (snap_seq != CEPH_NOSNAP)
return -EROFS;
- c->io = this;
- queue_aio_write(c);
-
Context *onack = new C_aio_Ack(c);
Context *onsafe = new C_aio_Safe(c);
+ c->io = this;
+ queue_aio_write(c);
+
c->tid = objecter->append(oid, oloc,
len, snapc, bl, ut, 0,
onack, onsafe, &c->objver);
if (snap_seq != CEPH_NOSNAP)
return -EROFS;
- c->io = this;
- queue_aio_write(c);
-
Context *onack = new C_aio_Ack(c);
Context *onsafe = new C_aio_Safe(c);
+ c->io = this;
+ queue_aio_write(c);
+
c->tid = objecter->write_full(oid, oloc,
snapc, bl, ut, 0,
onack, onsafe, &c->objver);
if (snap_seq != CEPH_NOSNAP)
return -EROFS;
- c->io = this;
- queue_aio_write(c);
-
Context *onack = new C_aio_Ack(c);
Context *onsafe = new C_aio_Safe(c);
+ c->io = this;
+ queue_aio_write(c);
+
c->tid = objecter->remove(oid, oloc,
snapc, ut, 0,
onack, onsafe, &c->objver);
int librados::IoCtxImpl::aio_stat(const object_t& oid, AioCompletionImpl *c,
uint64_t *psize, time_t *pmtime)
{
- c->io = this;
C_aio_stat_Ack *onack = new C_aio_stat_Ack(c, pmtime);
+ c->io = this;
c->tid = objecter->stat(oid, oloc,
snap_seq, psize, &onack->mtime, 0,
onack, &c->objver);