wait user ls end scn when switchover

This commit is contained in:
obdev
2023-08-18 12:09:45 +08:00
committed by ob-robot
parent 5d4d4e3de5
commit 3c3b68a7f1
13 changed files with 315 additions and 96 deletions

View File

@ -21,6 +21,10 @@ namespace common
class ObTimeoutCtx;
class ObISQLClient;
}
namespace storage
{
class ObLS;
}
namespace share
{
class ObShareUtil
@ -77,6 +81,10 @@ public:
const uint64_t tenant_id,
const ObSqlString &sql,
SCN &ora_rowscn);
// wait the given ls's end_scn be larger than or equal to sys_ls_target_scn
// @params[in]: sys_ls_target_scn
// @params[in]: ls
static int wait_user_ls_sync_scn_locally(const share::SCN &sys_ls_target_scn, storage::ObLS &ls);
static bool is_tenant_enable_rebalance(const uint64_t tenant_id);
};