op_info = std::make_shared<AsyncOpInfo>(0, op.length1);
op_info->bl1 = db->generate_data(0, op.length1);
op_info->wop.write_full(op_info->bl1);
- auto create_cb = [this] (boost::system::error_code ec) {
+ auto create_cb = [this] (boost::system::error_code ec,
+ version_t ver) {
ceph_assert(ec == boost::system::errc::success);
finish_io();
};
start_io();
op_info = std::make_shared<AsyncOpInfo>();
op_info->wop.remove();
- auto remove_cb = [this] (boost::system::error_code ec) {
+ auto remove_cb = [this] (boost::system::error_code ec,
+ version_t ver) {
ceph_assert(ec == boost::system::errc::success);
finish_io();
};
op_info->rop.read(op.offset1 * block_size,
op.length1 * block_size,
&op_info->bl1, nullptr);
- auto read_cb = [this, op_info] (boost::system::error_code ec, bufferlist bl) {
+ auto read_cb = [this, op_info] (boost::system::error_code ec,
+ version_t ver,
+ bufferlist bl) {
ceph_assert(ec == boost::system::errc::success);
db->validate(op_info->bl1, op_info->offset1, op_info->length1);
finish_io();
op.length2 * block_size,
&op_info->bl2, nullptr);
auto read2_cb = [this, op_info] (boost::system::error_code ec,
+ version_t ver,
bufferlist bl) {
ceph_assert(ec == boost::system::errc::success);
db->validate(op_info->bl1, op_info->offset1, op_info->length1);
op.length3 * block_size,
&op_info->bl3, nullptr);
auto read3_cb = [this, op_info] (boost::system::error_code ec,
+ version_t ver,
bufferlist bl) {
ceph_assert(ec == boost::system::errc::success);
db->validate(op_info->bl1, op_info->offset1, op_info->length1);
op_info->bl1 = db->generate_data(op.offset1, op.length1);
op_info->wop.write(op.offset1 * block_size, op_info->bl1);
- auto write_cb = [this] (boost::system::error_code ec) {
+ auto write_cb = [this] (boost::system::error_code ec,
+ version_t ver) {
ceph_assert(ec == boost::system::errc::success);
finish_io();
};
op_info->bl2 = db->generate_data(op.offset2, op.length2);
op_info->wop.write(op.offset1 * block_size, op_info->bl1);
op_info->wop.write(op.offset2 * block_size, op_info->bl2);
- auto write2_cb = [this] (boost::system::error_code ec) {
+ auto write2_cb = [this] (boost::system::error_code ec,
+ version_t ver) {
ceph_assert(ec == boost::system::errc::success);
finish_io();
};
op_info->wop.write(op.offset1 * block_size, op_info->bl1);
op_info->wop.write(op.offset2 * block_size, op_info->bl2);
op_info->wop.write(op.offset3 * block_size, op_info->bl3);
- auto write3_cb = [this] (boost::system::error_code ec) {
+ auto write3_cb = [this] (boost::system::error_code ec,
+ version_t ver) {
ceph_assert(ec == boost::system::errc::success);
finish_io();
};