Skip to content

Commit

Permalink
ObCreateTableRes new member placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
coolfishchen authored and ob-robot committed Nov 17, 2023
1 parent 18f0905 commit d4657d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/share/ob_rpc_struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ bool ObCreateTableArg::is_allow_when_upgrade() const
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
{
Expand Down
7 changes: 5 additions & 2 deletions src/share/ob_rpc_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -1008,16 +1008,19 @@ struct ObCreateTableRes
public:
ObCreateTableRes() :
table_id_(OB_INVALID_ID),
schema_version_(OB_INVALID_VERSION)
schema_version_(OB_INVALID_VERSION),
task_id_(0)
{}
int assign(const ObCreateTableRes &other) {
table_id_ = other.table_id_;
schema_version_ = other.schema_version_;
task_id_ = other.task_id_;
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_;
int64_t schema_version_;
int64_t task_id_;
};

struct ObCreateTableLikeArg : public ObDDLArg
Expand Down

0 comments on commit d4657d7

Please sign in to comment.