[CP] Fix snapshot releasing bug when building index

This commit is contained in:
Hongqin-Li
2022-07-08 11:47:48 +08:00
committed by wangzelin.wzl
parent 1190e78ce3
commit 68f715635b
4 changed files with 34 additions and 29 deletions

View File

@ -170,8 +170,9 @@ private:
int wait_trans_end(bool& is_end);
int wait_build_index_end(bool& is_end);
bool need_print_log();
int calc_snapshot_version(const int64_t max_commit_version, int64_t& snapshot_version);
int acquire_snapshot(const int64_t snapshot_version, const int64_t data_table_id, const int64_t schema_version);
int calc_snapshot_version(const int64_t max_commit_version, int64_t &snapshot_version);
int acquire_snapshot(const int64_t snapshot_version, const int64_t data_table_id, const int64_t schema_version,
common::ObMySQLTransaction &trans);
int release_snapshot();
int remove_index_build_stat_record();