enum class cls_rgw_reshard_status : uint8_t {
NOT_RESHARDING = 0,
- IN_PROGRESS = 1,
- DONE = 2
+ IN_LOGRECORD = 1,
+ IN_PROGRESS = 2,
+ DONE = 3
};
std::ostream& operator<<(std::ostream&, cls_rgw_reshard_status);
switch (status) {
case cls_rgw_reshard_status::NOT_RESHARDING:
return "not-resharding";
+ case cls_rgw_reshard_status::IN_LOGRECORD:
+ return "in-logrecord";
case cls_rgw_reshard_status::IN_PROGRESS:
return "in-progress";
case cls_rgw_reshard_status::DONE:
return reshard_status != RESHARD_STATUS::NOT_RESHARDING;
}
+ bool resharding_in_logrecord() const {
+ return reshard_status == RESHARD_STATUS::IN_LOGRECORD;
+ }
+
bool resharding_in_progress() const {
return reshard_status == RESHARD_STATUS::IN_PROGRESS;
}
bool resharding() const {
return new_instance.resharding();
}
+
+ bool resharding_in_logrecord() const {
+ return new_instance.resharding_in_logrecord();
+ }
+
bool resharding_in_progress() const {
return new_instance.resharding_in_progress();
}
+
};
WRITE_CLASS_ENCODER(rgw_bucket_dir_header)
int rs;
JSONDecoder::decode_json("reshard_status", rs, obj);
reshard_status = (cls_rgw_reshard_status)rs;
-
rgw_sync_policy_info sp;
JSONDecoder::decode_json("sync_policy", sp, obj);
if (!sp.empty()) {