| 5611 | } |
| 5612 | |
| 5613 | void Transaction::makeSelfConflicting() { |
| 5614 | BinaryWriter wr(Unversioned()); |
| 5615 | wr.serializeBytes(LiteralStringRef("\xFF/SC/")); |
| 5616 | wr << deterministicRandom()->randomUniqueID(); |
| 5617 | auto r = singleKeyRange(wr.toValue(), tr.arena); |
| 5618 | tr.transaction.read_conflict_ranges.push_back(tr.arena, r); |
| 5619 | tr.transaction.write_conflict_ranges.push_back(tr.arena, r); |
| 5620 | } |
| 5621 | |
| 5622 | void Transaction::set(const KeyRef& key, const ValueRef& value, AddConflictRange addConflictRange) { |
| 5623 | ++trState->cx->transactionSetMutations; |