[FEAT MERGE] 4.x Dup Table

Co-authored-by: Minionyh <minions.yh@gmail.com>
Co-authored-by: BinChenn <binchenn.bc@gmail.com>
Co-authored-by: ChangerR <dingjinchengyx@163.com>
This commit is contained in:
KyrielightWei
2023-05-11 10:07:20 +00:00
committed by ob-robot
parent 0509c5f9fe
commit aaab6560a1
278 changed files with 20924 additions and 2857 deletions

View File

@ -126,6 +126,8 @@ DEF_TO_STRING(ObLSMetaLog)
OB_SERIALIZE_MEMBER(ObLSMetaLog, ls_meta_);
OB_SERIALIZE_MEMBER(ObDupTableCkptLog, dup_ls_meta_);
ObLSIDLog::ObLSIDLog(ObLSID &ls_id)
: ls_id_(ls_id)
{

View File

@ -19,6 +19,7 @@
#include "observer/omt/ob_tenant_meta.h"
#include "share/ob_unit_getter.h"
#include "storage/ls/ob_ls_meta.h"
#include "storage/tx/ob_dup_table_base.h"
namespace oceanbase
{
@ -140,6 +141,28 @@ private:
ObLSMeta ls_meta_;
};
struct ObDupTableCkptLog : public ObIBaseStorageLogEntry
{
public:
ObDupTableCkptLog() {}
int init(const transaction::ObDupTableLSCheckpoint::ObLSDupTableMeta &dup_ls_meta)
{
return dup_ls_meta_.copy(dup_ls_meta);
}
const transaction::ObDupTableLSCheckpoint::ObLSDupTableMeta &get_dup_ls_meta()
{
return dup_ls_meta_;
}
bool is_valid() const { return dup_ls_meta_.is_valid(); }
TO_STRING_KV(K(dup_ls_meta_));
OB_UNIS_VERSION(1);
private:
transaction::ObDupTableLSCheckpoint::ObLSDupTableMeta dup_ls_meta_;
};
struct ObLSIDLog : public ObIBaseStorageLogEntry
{
public:

View File

@ -51,6 +51,8 @@ enum class ObRedoLogSubType
OB_REDO_LOG_PUT_TABLET = 14,
OB_REDO_LOG_DELETE_TABLET = 15,
OB_REDO_LOG_UPDATE_DUP_TABLE_LS = 16,
OB_REDO_LOG_MAX
};