Skip to content

Commit

Permalink
feat(txn): add hash field in txncontext (#146)
Browse files Browse the repository at this point in the history
This PR adds the hash field in Request and TxnContext. These changes will be needed by dgraph-io/dgraph#7659 which makes the transactions more robust.
  • Loading branch information
NamanJain8 authored Apr 1, 2021
1 parent 11bcd62 commit 95bfd74
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 101 deletions.
2 changes: 2 additions & 0 deletions protos/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ message Request {
RDF = 1;
}
RespFormat resp_format = 14;
string hash = 15;
}

message Uids {
Expand Down Expand Up @@ -128,6 +129,7 @@ message TxnContext {
bool aborted = 3;
repeated string keys = 4; // List of keys to be used for conflict detection.
repeated string preds = 5; // List of predicates involved in this transaction.
string hash = 6;
}

message Check {}
Expand Down
Loading

0 comments on commit 95bfd74

Please sign in to comment.