[SCN REFACTOR] replace flash back snapshot and remove read snapshot session
This commit is contained in:
@ -27,7 +27,7 @@ struct ObDDLChecksumItem
|
||||
{
|
||||
ObDDLChecksumItem()
|
||||
: execution_id_(common::OB_INVALID_ID), tenant_id_(common::OB_INVALID_ID),
|
||||
table_id_(common::OB_INVALID_ID), tablet_id_(common::OB_INVALID_ID),
|
||||
table_id_(common::OB_INVALID_ID), ddl_task_id_(0),
|
||||
column_id_(common::OB_INVALID_ID), task_id_(common::OB_INVALID_ID), checksum_(0)
|
||||
{}
|
||||
~ObDDLChecksumItem() {};
|
||||
@ -36,15 +36,15 @@ struct ObDDLChecksumItem
|
||||
return common::OB_INVALID_ID != execution_id_
|
||||
&& common::OB_INVALID_ID != tenant_id_
|
||||
&& common::OB_INVALID_ID != table_id_
|
||||
&& common::OB_INVALID_ID != tablet_id_
|
||||
&& 0 < ddl_task_id_
|
||||
&& common::OB_INVALID_ID != column_id_;
|
||||
}
|
||||
TO_STRING_KV(K_(execution_id), K_(tenant_id), K_(table_id),
|
||||
K_(tablet_id), K_(column_id), K_(task_id), K_(checksum));
|
||||
K_(ddl_task_id), K_(column_id), K_(task_id), K_(checksum));
|
||||
uint64_t execution_id_;
|
||||
uint64_t tenant_id_;
|
||||
uint64_t table_id_;
|
||||
int64_t tablet_id_;
|
||||
int64_t ddl_task_id_;
|
||||
int64_t column_id_;
|
||||
uint64_t task_id_;
|
||||
int64_t checksum_;
|
||||
@ -56,7 +56,7 @@ public:
|
||||
static int update_checksum(
|
||||
const uint64_t tenant_id,
|
||||
const int64_t table_id,
|
||||
const int64_t tablet_id,
|
||||
const int64_t ddl_task_id,
|
||||
const common::ObIArray<int64_t> &main_table_checksum,
|
||||
const common::ObIArray<int64_t> &col_ids,
|
||||
const int64_t schema_version,
|
||||
@ -64,23 +64,18 @@ public:
|
||||
common::ObMySQLProxy &sql_proxy);
|
||||
static int update_checksum(const common::ObIArray<ObDDLChecksumItem> &checksum_items,
|
||||
common::ObMySQLProxy &sql_proxy);
|
||||
static int get_tablet_column_checksum(
|
||||
const uint64_t tenant_id,
|
||||
const uint64_t execution_id,
|
||||
const uint64_t table_id,
|
||||
const int64_t tablet_id,
|
||||
common::hash::ObHashMap<int64_t, int64_t> &column_checksums,
|
||||
common::ObMySQLProxy &sql_proxy);
|
||||
static int get_table_column_checksum(
|
||||
const uint64_t tenant_id,
|
||||
const uint64_t execution_id,
|
||||
const uint64_t table_id,
|
||||
const int64_t ddl_task_id,
|
||||
common::hash::ObHashMap<int64_t, int64_t> &column_checksums, common::ObMySQLProxy &sql_proxy);
|
||||
static int check_column_checksum(
|
||||
const uint64_t tenant_id,
|
||||
const uint64_t execution_id,
|
||||
const uint64_t data_table_id,
|
||||
const uint64_t index_table_id,
|
||||
const int64_t ddl_task_id,
|
||||
bool &is_equal,
|
||||
common::ObMySQLProxy &sql_proxy);
|
||||
static int delete_checksum(
|
||||
@ -88,6 +83,7 @@ public:
|
||||
const uint64_t execution_id,
|
||||
const uint64_t source_table_id,
|
||||
const uint64_t dest_table_id,
|
||||
const int64_t ddl_task_id,
|
||||
common::ObMySQLProxy &sql_proxy);
|
||||
private:
|
||||
static int fill_one_item(const ObDDLChecksumItem &item,
|
||||
|
||||
Reference in New Issue
Block a user