void encode_json_impl(const char *name, const bucket_index_layout& l, ceph::Formatter *f);
void decode_json_obj(bucket_index_layout& l, JSONObj *obj);
-
struct bucket_index_layout_generation {
uint64_t gen = 0;
bucket_index_layout layout;
struct bucket_index_log_layout {
uint64_t gen = 0;
bucket_index_normal_layout layout;
+ operator bucket_index_layout_generation() const {
+ bucket_index_layout_generation bilg;
+ bilg.gen = gen;
+ bilg.layout.type = BucketIndexType::Normal;
+ bilg.layout.normal = layout;
+ return bilg;
+ }
};
void encode(const bucket_index_log_layout& l, bufferlist& bl, uint64_t f=0);
void encode_json_impl(const char *name, const bucket_log_layout& l, ceph::Formatter *f);
void decode_json_obj(bucket_log_layout& l, JSONObj *obj);
-
struct bucket_log_layout_generation {
uint64_t gen = 0;
bucket_log_layout layout;