Skip to content

Commit

Permalink
use map instead of list for keys/preds
Browse files Browse the repository at this point in the history
  • Loading branch information
NamanJain8 committed Mar 2, 2021
1 parent 64a000a commit 6f8609f
Show file tree
Hide file tree
Showing 3 changed files with 343 additions and 141 deletions.
4 changes: 2 additions & 2 deletions protos/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ message TxnContext {
uint64 start_ts = 1;
uint64 commit_ts = 2;
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.
map<string, bool> keys = 4; // Set of keys to be used for conflict detection.
map<string, bool> preds = 5; // Set of predicates involved in this transaction.
}

message Check {}
Expand Down
Loading

0 comments on commit 6f8609f

Please sign in to comment.