f->close_section();
f->open_array_section("rm_xattrs");
- for (; iter != rm_xattrs.end(); ++iter) {
+ for (iter = rm_xattrs.begin(); iter != rm_xattrs.end(); ++iter) {
f->dump_string("name", iter->first);
f->open_object_section("value");
f->dump_unsigned("length", iter->second.length());
}
void decode(bufferlist::iterator& bl) {
DECODE_START_LEGACY_COMPAT_LEN(2, 2, 2, bl);
- ::decode(struct_v, bl);
::decode(size, bl);
utime_t t;
::decode(t, bl);
#define CEPH_RGW_TAG_TIMEOUT 60*60*24
enum RGWPendingState {
- CLS_RGW_STATE_PENDING_MODIFY,
- CLS_RGW_STATE_COMPLETE,
+ CLS_RGW_STATE_PENDING_MODIFY = 0,
+ CLS_RGW_STATE_COMPLETE = 1,
};
enum RGWModifyOp {
utime_t timestamp;
uint8_t op;
+ rgw_bucket_pending_info() : state(CLS_RGW_STATE_PENDING_MODIFY), op(0) {}
+
void encode(bufferlist &bl) const {
ENCODE_START(2, 2, bl);
uint8_t s = (uint8_t)state;
void encode(bufferlist &bl) const {
ENCODE_START(3, 3, bl);
- ::encode(struct_v, bl);
::encode(name, bl);
::encode(epoch, bl);
::encode(exists, bl);
uint64_t total_size_rounded;
uint64_t num_entries;
+ rgw_bucket_category_stats() : total_size(0), total_size_rounded(0), num_entries(0) {}
+
void encode(bufferlist &bl) const {
ENCODE_START(2, 2, bl);
::encode(total_size, bl);
string tag;
string locator;
+ rgw_cls_obj_prepare_op() : op(0) {}
+
void encode(bufferlist &bl) const {
ENCODE_START(3, 3, bl);
::encode(op, bl);
string start_obj;
uint32_t num_entries;
+ rgw_cls_list_op() : num_entries(0) {}
+
void encode(bufferlist &bl) const {
ENCODE_START(2, 2, bl);
::encode(start_obj, bl);