virtual int completion_ret(int slot) = 0;
virtual int aio_read(const std::string& oid, int slot, bufferlist *pbl, size_t len) = 0;
- virtual int aio_write(const std::string& oid, int slot, const bufferlist& bl, size_t len) = 0;
+ virtual int aio_write(const std::string& oid, int slot, bufferlist& bl, size_t len) = 0;
virtual int sync_read(const std::string& oid, bufferlist& bl, size_t len) = 0;
virtual int sync_write(const std::string& oid, bufferlist& bl, size_t len) = 0;
public:
return io_ctx.aio_read(oid, completions[slot], pbl, len, 0);
}
- int aio_write(const std::string& oid, int slot, const bufferlist& bl, size_t len) {
+ int aio_write(const std::string& oid, int slot, bufferlist& bl, size_t len) {
return io_ctx.aio_write(oid, completions[slot], bl, len, 0);
}
return 0;
}
- int aio_write(const std::string& oid, int slot, const bufferlist& bl, size_t len) {
+ int aio_write(const std::string& oid, int slot, bufferlist& bl, size_t len) {
struct req_context *ctx = completions[slot];
ctx->get();