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

Function addTagMapping

fdbserver/CommitProxyServer.actor.cpp:1831–1839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1829}
1830
1831void addTagMapping(GetKeyServerLocationsReply& reply, ProxyCommitData* commitData) {
1832 for (const auto& [_, shard] : reply.results) {
1833 for (auto& ssi : shard) {
1834 auto iter = commitData->storageCache.find(ssi.id());
1835 ASSERT_WE_THINK(iter != commitData->storageCache.end());
1836 reply.resultsTagMapping.emplace_back(ssi.id(), iter->second->tag);
1837 }
1838 }
1839}
1840
1841ACTOR static Future<Void> doKeyServerLocationRequest(GetKeyServerLocationsRequest req, ProxyCommitData* commitData) {
1842 // We can't respond to these requests until we have valid txnStateStore

Callers 1

Calls 4

emplace_backMethod · 0.80
findMethod · 0.45
idMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected