| 5434 | } |
| 5435 | |
| 5436 | Future<Key> Transaction::getKey(const KeySelector& key, Snapshot snapshot) { |
| 5437 | ++trState->cx->transactionLogicalReads; |
| 5438 | ++trState->cx->transactionGetKeyRequests; |
| 5439 | if (snapshot) |
| 5440 | return ::getKey(trState, key, getReadVersion()); |
| 5441 | |
| 5442 | Promise<std::pair<Key, Key>> conflictRange; |
| 5443 | extraConflictRanges.push_back(conflictRange.getFuture()); |
| 5444 | return getKeyAndConflictRange(trState, key, getReadVersion(), conflictRange); |
| 5445 | } |
| 5446 | |
| 5447 | template <class GetKeyValuesFamilyRequest> |
| 5448 | void increaseCounterForRequest(Database cx) { |