void set_fadvise_dontneed();
void set_fadvise_nocache();
- void cmpext(uint64_t off, ceph::buffer::list&& cmp_bl,
+ void cmpext(uint64_t off, ceph::buffer::list cmp_bl,
uint64_t* unmatch = nullptr);
void cmpxattr(std::string_view name, cmp_op op,
const ceph::buffer::list& val);
return std::move(*this);
}
- ReadOp& cmpext(uint64_t off, ceph::buffer::list&& cmp_bl,
+ ReadOp& cmpext(uint64_t off, ceph::buffer::list cmp_bl,
uint64_t* unmatch = nullptr) & {
Op::cmpext(off, std::move(cmp_bl), unmatch);
return *this;
}
- ReadOp&& cmpext(uint64_t off, ceph::buffer::list&& cmp_bl,
+ ReadOp&& cmpext(uint64_t off, ceph::buffer::list cmp_bl,
uint64_t* unmatch = nullptr) && {
Op::cmpext(off, std::move(cmp_bl), unmatch);
return std::move(*this);
WriteOp&& create(bool exclusive) && {
return std::move(create(exclusive));
}
- WriteOp& write(uint64_t off, ceph::buffer::list&& bl) &;
- WriteOp&& write(uint64_t off, ceph::buffer::list&& bl) && {
+ WriteOp& write(uint64_t off, ceph::buffer::list bl) &;
+ WriteOp&& write(uint64_t off, ceph::buffer::list bl) && {
return std::move(write(off, std::move(bl)));
}
- WriteOp& write_full(ceph::buffer::list&& bl) &;
- WriteOp&& write_full(ceph::buffer::list&& bl) && {
+ WriteOp& write_full(ceph::buffer::list bl) &;
+ WriteOp&& write_full(ceph::buffer::list bl) && {
return std::move(write_full(std::move(bl)));
}
WriteOp& writesame(std::uint64_t off, std::uint64_t write_len,
- ceph::buffer::list&& bl) &;
+ ceph::buffer::list bl) &;
WriteOp&& writesame(std::uint64_t off, std::uint64_t write_len,
- ceph::buffer::list&& bl) && {
+ ceph::buffer::list bl) && {
return std::move(writesame(off, write_len, std::move(bl)));
}
- WriteOp& append(ceph::buffer::list&& bl) &;
- WriteOp&& append(ceph::buffer::list&& bl) && {
+ WriteOp& append(ceph::buffer::list bl) &;
+ WriteOp&& append(ceph::buffer::list bl) && {
return std::move(append(std::move(bl)));
}
WriteOp& remove() &;
return std::move(rmxattr(name));
}
WriteOp& setxattr(std::string_view name,
- ceph::buffer::list&& bl) &;
+ ceph::buffer::list bl) &;
WriteOp&& setxattr(std::string_view name,
- ceph::buffer::list&& bl) && {
+ ceph::buffer::list bl) && {
return std::move(setxattr(name, std::move(bl)));
}
WriteOp& rollback(uint64_t snapid) &;
const boost::container::flat_map<std::string, ceph::buffer::list>& map) && {
return std::move(set_omap(map));
}
- WriteOp& set_omap_header(ceph::buffer::list&& bl) &;
- WriteOp&& set_omap_header(ceph::buffer::list&& bl) && {
+ WriteOp& set_omap_header(ceph::buffer::list bl) &;
+ WriteOp&& set_omap_header(ceph::buffer::list bl) && {
return std::move(set_omap_header(std::move(bl)));
}
WriteOp& clear_omap() &;
return std::move(*this);
}
- WriteOp& cmpext(uint64_t off, ceph::buffer::list&& cmp_bl,
+ WriteOp& cmpext(uint64_t off, ceph::buffer::list cmp_bl,
uint64_t* unmatch = nullptr) & {
Op::cmpext(off, std::move(cmp_bl), unmatch);
return *this;
}
- WriteOp&& cmpext(uint64_t off, ceph::buffer::list&& cmp_bl,
+ WriteOp&& cmpext(uint64_t off, ceph::buffer::list cmp_bl,
uint64_t* unmatch = nullptr) && {
Op::cmpext(off, std::move(cmp_bl), unmatch);
return std::move(*this);
CEPH_OSD_OP_FLAG_FADVISE_NOCACHE);
}
-void Op::cmpext(uint64_t off, bufferlist&& cmp_bl, uint64_t* unmatch) {
+void Op::cmpext(uint64_t off, bufferlist cmp_bl, uint64_t* unmatch) {
reinterpret_cast<OpImpl*>(&impl)->op.cmpext(off, std::move(cmp_bl), nullptr,
unmatch);
}
return *this;
}
-WriteOp& WriteOp::write(uint64_t off, bufferlist&& bl) & {
- reinterpret_cast<OpImpl*>(&impl)->op.write(off, bl);
+WriteOp& WriteOp::write(uint64_t off, bufferlist bl) & {
+ reinterpret_cast<OpImpl*>(&impl)->op.write(off, std::move(bl));
return *this;
}
-WriteOp& WriteOp::write_full(bufferlist&& bl) & {
- reinterpret_cast<OpImpl*>(&impl)->op.write_full(bl);
+WriteOp& WriteOp::write_full(bufferlist bl) & {
+ reinterpret_cast<OpImpl*>(&impl)->op.write_full(std::move(bl));
return *this;
}
-WriteOp& WriteOp::writesame(uint64_t off, uint64_t write_len, bufferlist&& bl) & {
- reinterpret_cast<OpImpl*>(&impl)->op.writesame(off, write_len, bl);
+WriteOp& WriteOp::writesame(uint64_t off, uint64_t write_len, bufferlist bl) & {
+ reinterpret_cast<OpImpl*>(&impl)->op.writesame(off, write_len, std::move(bl));
return *this;
}
-WriteOp& WriteOp::append(bufferlist&& bl) & {
- reinterpret_cast<OpImpl*>(&impl)->op.append(bl);
+WriteOp& WriteOp::append(bufferlist bl) & {
+ reinterpret_cast<OpImpl*>(&impl)->op.append(std::move(bl));
return *this;
}
}
WriteOp& WriteOp::setxattr(std::string_view name,
- bufferlist&& bl) & {
- reinterpret_cast<OpImpl*>(&impl)->op.setxattr(name, bl);
+ bufferlist bl) & {
+ reinterpret_cast<OpImpl*>(&impl)->op.setxattr(name, std::move(bl));
return *this;
}
return *this;
}
-WriteOp& WriteOp::set_omap_header(bufferlist&& bl) & {
- reinterpret_cast<OpImpl*>(&impl)->op.omap_set_header(bl);
+WriteOp& WriteOp::set_omap_header(bufferlist bl) & {
+ reinterpret_cast<OpImpl*>(&impl)->op.omap_set_header(std::move(bl));
return *this;
}
void write(uint64_t off, ceph::buffer::list& bl) {
write(off, bl, 0, 0);
}
+ void write(uint64_t off, ceph::buffer::list&& bl) {
+ write(off, bl, 0, 0);
+ }
void write_full(ceph::buffer::list& bl) {
add_data(CEPH_OSD_OP_WRITEFULL, 0, bl.length(), bl);
}
+ void write_full(ceph::buffer::list&& bl) {
+ add_data(CEPH_OSD_OP_WRITEFULL, 0, bl.length(), bl);
+ }
void writesame(uint64_t off, uint64_t write_len, ceph::buffer::list& bl) {
add_writesame(CEPH_OSD_OP_WRITESAME, off, write_len, bl);
}
+ void writesame(uint64_t off, uint64_t write_len, ceph::buffer::list&& bl) {
+ add_writesame(CEPH_OSD_OP_WRITESAME, off, write_len, bl);
+ }
void append(ceph::buffer::list& bl) {
add_data(CEPH_OSD_OP_APPEND, 0, bl.length(), bl);
}
+ void append(ceph::buffer::list&& bl) {
+ add_data(CEPH_OSD_OP_APPEND, 0, bl.length(), bl);
+ }
void zero(uint64_t off, uint64_t len) {
ceph::buffer::list bl;
add_data(CEPH_OSD_OP_ZERO, off, len, bl);
add_data(CEPH_OSD_OP_OMAPSETVALS, 0, bl.length(), bl);
}
- void omap_set_header(ceph::buffer::list &bl) {
+ void omap_set_header(ceph::buffer::list& bl) {
+ add_data(CEPH_OSD_OP_OMAPSETHEADER, 0, bl.length(), bl);
+ }
+
+ void omap_set_header(ceph::buffer::list&& bl) {
add_data(CEPH_OSD_OP_OMAPSETHEADER, 0, bl.length(), bl);
}
&librados::TestIoCtxImpl::assert_version, _1, _2, ver));
}
-void Op::cmpext(uint64_t off, ceph::buffer::list&& cmp_bl, uint64_t* s) {
+void Op::cmpext(uint64_t off, ceph::buffer::list cmp_bl, uint64_t* s) {
auto o = *reinterpret_cast<librados::TestObjectOperationImpl**>(&impl);
librados::ObjectOperationTestImpl op = std::bind(
&librados::TestIoCtxImpl::cmpext, _1, _2, off, cmp_bl, _4);
return *this;
}
-WriteOp& WriteOp::write(uint64_t off, ceph::buffer::list&& bl) & {
+WriteOp& WriteOp::write(uint64_t off, ceph::buffer::list bl) & {
auto o = *reinterpret_cast<librados::TestObjectOperationImpl**>(&impl);
o->ops.push_back(std::bind(
&librados::TestIoCtxImpl::write, _1, _2, bl, bl.length(), off, _5));
return *this;
}
-WriteOp& WriteOp::write_full(ceph::buffer::list&& bl) & {
+WriteOp& WriteOp::write_full(ceph::buffer::list bl) & {
auto o = *reinterpret_cast<librados::TestObjectOperationImpl**>(&impl);
o->ops.push_back(std::bind(
&librados::TestIoCtxImpl::write_full, _1, _2, bl, _5));
}
WriteOp& WriteOp::writesame(std::uint64_t off, std::uint64_t write_len,
- ceph::buffer::list&& bl) & {
+ ceph::buffer::list bl) & {
auto o = *reinterpret_cast<librados::TestObjectOperationImpl**>(&impl);
o->ops.push_back(std::bind(
&librados::TestIoCtxImpl::writesame, _1, _2, bl, write_len, off, _5));