MCPcopy Create free account
hub / github.com/apple/foundationdb / watch

Method watch

fdbclient/NativeAPI.actor.cpp:5336–5351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5334}
5335
5336Future<Void> Transaction::watch(Reference<Watch> watch) {
5337 ++trState->cx->transactionWatchRequests;
5338
5339 trState->cx->addWatch();
5340 watches.push_back(watch);
5341 return ::watch(
5342 watch,
5343 trState->cx,
5344 populateAndGetTenant(
5345 trState, watch->key, readVersion.isValid() && readVersion.isReady() ? readVersion.get() : latestVersion),
5346 trState->options.readTags,
5347 trState->spanContext,
5348 trState->taskID,
5349 trState->debugID,
5350 trState->useProvisionalProxies);
5351}
5352
5353ACTOR Future<Standalone<VectorRef<const char*>>> getAddressesForKeyActor(Reference<TransactionState> trState,
5354 Future<Version> ver,

Callers

nothing calls this directly

Calls 6

populateAndGetTenantFunction · 0.85
addWatchMethod · 0.80
getMethod · 0.65
push_backMethod · 0.45
isValidMethod · 0.45
isReadyMethod · 0.45

Tested by

no test coverage detected