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

Method getWatchMetadata

fdbclient/NativeAPI.actor.cpp:2307–2312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2305}
2306
2307Reference<WatchMetadata> DatabaseContext::getWatchMetadata(int64_t tenantId, KeyRef key) const {
2308 const auto it = watchMap.find(std::make_pair(tenantId, key));
2309 if (it == watchMap.end())
2310 return Reference<WatchMetadata>();
2311 return it->second;
2312}
2313
2314void DatabaseContext::setWatchMetadata(Reference<WatchMetadata> metadata) {
2315 watchMap[std::make_pair(metadata->parameters->tenant.tenantId, metadata->parameters->key)] = metadata;

Callers 4

catchFunction · 0.45
getWatchFutureFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected