Skip to content

Commit 68cb20d

Browse files
author
Ganeshwara Hananda
committed
Allow performing reads to secondary replica. Update stale terminology
1 parent 93f60d3 commit 68cb20d

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
@@ -44,4 +44,7 @@ message Options {
4444
oneof schema_lock_acquire_timeout_opt {
4545
int32 schema_lock_acquire_timeout_millis = 6;
4646
}
47+
oneof primary_replica_opt {
48+
bool primary_replica = 6;
49+
}
4750
}

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)