Skip to content

Commit 95bfd74

Browse files
authored
feat(txn): add hash field in txncontext (#146)
This PR adds the hash field in Request and TxnContext. These changes will be needed by hypermodeinc/dgraph#7659 which makes the transactions more robust.
1 parent 11bcd62 commit 95bfd74

File tree

3 files changed

+209
-101
lines changed

3 files changed

+209
-101
lines changed

protos/api.proto

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ message Request {
5757
RDF = 1;
5858
}
5959
RespFormat resp_format = 14;
60+
string hash = 15;
6061
}
6162

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

133135
message Check {}

0 commit comments

Comments
 (0)