diff options
Diffstat (limited to 'src/cls/2pc_queue/cls_2pc_queue_ops.h')
-rw-r--r-- | src/cls/2pc_queue/cls_2pc_queue_ops.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/cls/2pc_queue/cls_2pc_queue_ops.h b/src/cls/2pc_queue/cls_2pc_queue_ops.h index d0b84193d5c..bb61ef341ac 100644 --- a/src/cls/2pc_queue/cls_2pc_queue_ops.h +++ b/src/cls/2pc_queue/cls_2pc_queue_ops.h @@ -115,3 +115,25 @@ struct cls_2pc_queue_reservations_ret { } }; WRITE_CLASS_ENCODER(cls_2pc_queue_reservations_ret) + +struct cls_2pc_queue_remove_op { + std::string end_marker; + uint32_t entries_to_remove; + + cls_2pc_queue_remove_op() {} + + void encode(ceph::buffer::list& bl) const { + ENCODE_START(1, 1, bl); + encode(end_marker, bl); + encode(entries_to_remove, bl); + ENCODE_FINISH(bl); + } + + void decode(ceph::buffer::list::const_iterator& bl) { + DECODE_START(1, bl); + decode(end_marker, bl); + decode(entries_to_remove, bl); + DECODE_FINISH(bl); + } +}; +WRITE_CLASS_ENCODER(cls_2pc_queue_remove_op)
\ No newline at end of file |