| 59 | } |
| 60 | |
| 61 | ThreadFuture<Version> DLTransaction::getReadVersion() { |
| 62 | FdbCApi::FDBFuture* f = api->transactionGetReadVersion(tr); |
| 63 | |
| 64 | return toThreadFuture<Version>(api, f, [](FdbCApi::FDBFuture* f, FdbCApi* api) { |
| 65 | int64_t version; |
| 66 | FdbCApi::fdb_error_t error = api->futureGetInt64(f, &version); |
| 67 | ASSERT(!error); |
| 68 | return version; |
| 69 | }); |
| 70 | } |
| 71 | |
| 72 | ThreadFuture<Optional<Value>> DLTransaction::get(const KeyRef& key, bool snapshot) { |
| 73 | FdbCApi::FDBFuture* f = api->transactionGet(tr, key.begin(), key.size(), snapshot); |
nothing calls this directly
no test coverage detected