Skip to content

Commit

Permalink
Introduce a new transaction type for reading from secondary replicas (#…
Browse files Browse the repository at this point in the history
…110)

## What is the goal of this PR?

We've introduced a new Grakn-Cluster-specific transaction type, "read secondary". It is a read-only transaction that may read not only from primary but also from secondary replicas.

## What are the changes implemented in this PR?

- Adds a new option `allow_secondary_replica`
  • Loading branch information
Ganeshwara Hananda authored Jan 26, 2021
1 parent f49cbca commit 1cb73f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion protobuf/cluster/database.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ message Database {
message Replica {
string address = 1;
string database = 2;
bool is_leader = 3;
bool is_primary = 3;
int64 term = 4;
}
}
Expand Down
3 changes: 3 additions & 0 deletions protobuf/options.proto
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ message Options {
oneof schema_lock_acquire_timeout_opt {
int32 schema_lock_acquire_timeout_millis = 6;
}
oneof allow_secondary_replica_opt {
bool allow_secondary_replica = 7;
}
}

0 comments on commit 1cb73f1

Please sign in to comment.