[FEAT MERGE]implement user-defined rewrite rules

This commit is contained in:
obdev
2022-12-30 08:10:42 +00:00
committed by ob-robot
parent 21c0bac716
commit 9dcc0a529e
100 changed files with 5540 additions and 315 deletions

View File

@ -8092,6 +8092,24 @@ private:
common::ObSArray<common::ObAddr> servers_;
};
struct ObSyncRewriteRuleArg
{
OB_UNIS_VERSION(1);
public:
ObSyncRewriteRuleArg(): tenant_id_(common::OB_INVALID_TENANT_ID)
{}
~ObSyncRewriteRuleArg() {}
int assign(const ObSyncRewriteRuleArg &other)
{
tenant_id_ = other.tenant_id_;
return common::OB_SUCCESS;
}
bool is_valid() const { return common::OB_INVALID_TENANT_ID != tenant_id_; }
TO_STRING_KV(K_(tenant_id));
uint64_t tenant_id_;
};
struct ObInitTenantConfigArg
{
OB_UNIS_VERSION(1);