Convert min_restore_scn to timestamp for displaying in ob_admin dump_backup

This commit is contained in:
obdev
2023-08-11 02:54:39 +00:00
committed by ob-robot
parent 600c2481c9
commit 019cb496f5
5 changed files with 99 additions and 27 deletions

View File

@ -3983,6 +3983,24 @@ int ObBackupSetFileDesc::assign(const ObBackupSetFileDesc &other)
return ret;
}
int64_t ObBackupSetFileDesc::to_string(char *min_restore_scn_str_buf, char *buf, int64_t buf_len) const {
int64_t pos = 0;
if (OB_ISNULL(min_restore_scn_str_buf) || OB_ISNULL(buf) || buf_len <= 0 || !is_valid()) {
// do nothing
} else {
J_OBJ_START();
ObSzString min_restore_scn_display(min_restore_scn_str_buf);
J_KV(K_(backup_set_id), K_(incarnation), K_(tenant_id), K_(dest_id), K_(backup_type), K_(plus_archivelog),
K_(date), K_(prev_full_backup_set_id), K_(prev_inc_backup_set_id), K_(stats), K_(start_time), K_(end_time),
K_(status), K_(result), K_(encryption_mode), K_(passwd), K_(file_status), K_(backup_path), K_(start_replay_scn),
K_(min_restore_scn), K(min_restore_scn_display), K_(tenant_compatible), K_(backup_compatible), K_(data_turn_id), K_(meta_turn_id),
K_(cluster_version), K_(consistent_scn));
J_OBJ_END();
}
return pos;
}
ObBackupSkipTabletAttr::ObBackupSkipTabletAttr()
: tablet_id_(),
skipped_type_()