1 #ifndef CEPH_CLS_RGW_GC_OPS_H
2 #define CEPH_CLS_RGW_GC_OPS_H
4 #include "cls/rgw/cls_rgw_types.h"
6 struct cls_rgw_gc_queue_init_op
{
8 uint64_t num_deferred_entries
{0};
10 cls_rgw_gc_queue_init_op() {}
12 void encode(bufferlist
& bl
) const {
13 ENCODE_START(1, 1, bl
);
15 encode(num_deferred_entries
, bl
);
19 void decode(bufferlist::const_iterator
& bl
) {
22 decode(num_deferred_entries
, bl
);
27 WRITE_CLASS_ENCODER(cls_rgw_gc_queue_init_op
)
29 struct cls_rgw_gc_queue_remove_entries_op
{
32 cls_rgw_gc_queue_remove_entries_op() {}
34 void encode(bufferlist
& bl
) const {
35 ENCODE_START(1, 1, bl
);
36 encode(num_entries
, bl
);
40 void decode(bufferlist::const_iterator
& bl
) {
42 decode(num_entries
, bl
);
46 WRITE_CLASS_ENCODER(cls_rgw_gc_queue_remove_entries_op
)
48 struct cls_rgw_gc_queue_defer_entry_op
{
49 uint32_t expiration_secs
;
50 cls_rgw_gc_obj_info info
;
51 cls_rgw_gc_queue_defer_entry_op() : expiration_secs(0) {}
53 void encode(bufferlist
& bl
) const {
54 ENCODE_START(1, 1, bl
);
55 encode(expiration_secs
, bl
);
60 void decode(bufferlist::const_iterator
& bl
) {
62 decode(expiration_secs
, bl
);
67 WRITE_CLASS_ENCODER(cls_rgw_gc_queue_defer_entry_op
)
68 #endif /* CEPH_CLS_RGW_GC_OPS_H */