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

Function maybeAddTssMapping

fdbserver/CommitProxyServer.actor.cpp:1818–1829  ·  view source on GitHub ↗

Add tss mapping data to the reply, if any of the included storage servers have a TSS pair

Source from the content-addressed store, hash-verified

1816
1817// Add tss mapping data to the reply, if any of the included storage servers have a TSS pair
1818void maybeAddTssMapping(GetKeyServerLocationsReply& reply,
1819 ProxyCommitData* commitData,
1820 std::unordered_set<UID>& included,
1821 UID ssId) {
1822 if (!included.count(ssId)) {
1823 auto mappingItr = commitData->tssMapping.find(ssId);
1824 if (mappingItr != commitData->tssMapping.end()) {
1825 reply.resultsTssMapping.push_back(*mappingItr);
1826 }
1827 included.insert(ssId);
1828 }
1829}
1830
1831void addTagMapping(GetKeyServerLocationsReply& reply, ProxyCommitData* commitData) {
1832 for (const auto& [_, shard] : reply.results) {

Callers 1

Calls 5

countMethod · 0.65
findMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected