Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add replicate end msg #360

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,047 changes: 531 additions & 516 deletions go-api/commonpb/common.pb.go

Large diffs are not rendered by default.

168 changes: 136 additions & 32 deletions go-api/msgpb/msg.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

561 changes: 285 additions & 276 deletions go-api/schemapb/schema.pb.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions proto/common.proto
Original file line number Diff line number Diff line change
@@ -263,6 +263,7 @@ enum MsgType {
Connect = 1209;
ListClientInfos = 1210;
AllocTimestamp = 1211;
Replicate = 1212;

/* Credential */
CreateCredential = 1500;
@@ -318,6 +319,7 @@ message MsgBase {
message ReplicateInfo {
bool isReplicate = 1;
uint64 msgTimestamp = 2;
string replicateID = 3;
}

enum DslType {
7 changes: 7 additions & 0 deletions proto/msg.proto
Original file line number Diff line number Diff line change
@@ -107,3 +107,10 @@ message DataNodeTtMsg {
repeated common.SegmentStats segments_stats = 4;
}

message ReplicateMsg {
common.MsgBase base = 1;
bool is_end = 2;
bool is_cluster = 3;
string database = 4;
string collection = 5;
}
1 change: 1 addition & 0 deletions proto/schema.proto
Original file line number Diff line number Diff line change
@@ -99,6 +99,7 @@ message CollectionSchema {
bool enable_dynamic_field = 5; // mark whether this table has the dynamic field function enabled.
repeated common.KeyValuePair properties = 6;
repeated FunctionSchema functions = 7;
string dbName = 8;
}

message BoolArray { repeated bool data = 1; }