WRITE_CLASS_ENCODER(cls_queue_enqueue_op)
struct cls_queue_list_op {
- uint64_t max;
+ uint64_t max{0};
std::string start_marker;
+ std::string end_marker;
cls_queue_list_op() {}
}
void decode(ceph::buffer::list::const_iterator& bl) {
- DECODE_START(1, bl);
+ DECODE_START(2, bl);
decode(max, bl);
decode(start_marker, bl);
+ if (struct_v > 1) {
+ decode(end_marker, bl);
+ }
DECODE_FINISH(bl);
}
+
+ void dump(ceph::Formatter *f) const {
+ f->dump_unsigned("max", max);
+ f->dump_string("start_marker", start_marker);
+ }
+
+ static void generate_test_instances(std::list<cls_queue_list_op*>& o) {
+ o.push_back(new cls_queue_list_op);
+ o.push_back(new cls_queue_list_op);
+ o.back()->max = 123;
+ o.back()->start_marker = "foo";
+ }
};
WRITE_CLASS_ENCODER(cls_queue_list_op)