ObCreateTableRes new member placeholder

This commit is contained in:
obdev
2024-02-06 15:43:20 +00:00
committed by ob-robot
parent f1be30b005
commit 71a383ea79
2 changed files with 6 additions and 3 deletions

View File

@ -1688,7 +1688,7 @@ bool ObCreateTableArg::is_allow_when_upgrade() const
return bret; return bret;
} }
OB_SERIALIZE_MEMBER(ObCreateTableRes, table_id_, schema_version_); OB_SERIALIZE_MEMBER(ObCreateTableRes, table_id_, schema_version_, task_id_);
bool ObCreateTableLikeArg::is_valid() const bool ObCreateTableLikeArg::is_valid() const
{ {

View File

@ -1008,16 +1008,19 @@ struct ObCreateTableRes
public: public:
ObCreateTableRes() : ObCreateTableRes() :
table_id_(OB_INVALID_ID), table_id_(OB_INVALID_ID),
schema_version_(OB_INVALID_VERSION) schema_version_(OB_INVALID_VERSION),
task_id_(0)
{} {}
int assign(const ObCreateTableRes &other) { int assign(const ObCreateTableRes &other) {
table_id_ = other.table_id_; table_id_ = other.table_id_;
schema_version_ = other.schema_version_; schema_version_ = other.schema_version_;
task_id_ = other.task_id_;
return common::OB_SUCCESS; return common::OB_SUCCESS;
} }
TO_STRING_KV(K_(table_id), K_(schema_version)); TO_STRING_KV(K_(table_id), K_(schema_version), K_(task_id));
uint64_t table_id_; uint64_t table_id_;
int64_t schema_version_; int64_t schema_version_;
int64_t task_id_;
}; };
struct ObCreateTableLikeArg : public ObDDLArg struct ObCreateTableLikeArg : public ObDDLArg