Skip to content

Commit 964ef52

Browse files
author
Ganeshwara Hananda
committed
Allow performing reads to secondary replica. Update stale terminology
1 parent 125b3b8 commit 964ef52

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

protobuf/cluster/database.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ message Database {
3434
message Replica {
3535
string address = 1;
3636
string database = 2;
37-
bool is_leader = 3;
37+
bool is_primary = 3;
3838
int64 term = 4;
3939
}
4040
}

protobuf/options.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,7 @@ message Options {
4141
oneof schema_lock_acquire_timeout_opt {
4242
int32 schema_lock_acquire_timeout_millis = 5;
4343
}
44+
oneof primary_replica_opt {
45+
bool primary_replica = 6;
46+
}
4447
}

protobuf/transaction.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ message Transaction {
6767
enum Type {
6868
READ = 0;
6969
WRITE = 1;
70-
READ_SECONDARY = 2;
7170
}
7271

7372
message Open {

0 commit comments

Comments
 (0)