[Placeholder] server_id related rpc_struct used in bootstrap

This commit is contained in:
obdev
2024-02-10 07:19:06 +00:00
committed by ob-robot
parent ebdf4a0f54
commit d0bd618d86
2 changed files with 17 additions and 5 deletions

View File

@ -8762,20 +8762,23 @@ public:
ADD_SERVER
};
ObCheckServerEmptyArg(): mode_(BOOTSTRAP), sys_data_version_(0) {}
ObCheckServerEmptyArg(): mode_(BOOTSTRAP), sys_data_version_(0), server_id_(OB_INVALID_ID) {}
ObCheckServerEmptyArg(const Mode mode,
const uint64_t sys_data_version)
: mode_(mode), sys_data_version_(sys_data_version) {}
TO_STRING_KV(K_(mode), K_(sys_data_version));
: mode_(mode), sys_data_version_(sys_data_version), server_id_(OB_INVALID_ID) {}
TO_STRING_KV(K_(mode), K_(sys_data_version), K_(server_id));
int assign(const ObCheckServerEmptyArg &other);
Mode mode_;
uint64_t sys_data_version_;
uint64_t server_id_;
};
struct ObCheckServerForAddingServerArg
{
OB_UNIS_VERSION(1);
public:
enum Mode {
ADD_SERVER
ADD_SERVER,
BOOTSTRAP
};
ObCheckServerForAddingServerArg(): mode_(ADD_SERVER), sys_tenant_data_version_(0), server_id_(OB_INVALID_ID) {}