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

Method addPseudoLocality

fdbserver/TagPartitionedLogSystem.actor.cpp:182–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void TagPartitionedLogSystem::addPseudoLocality(int8_t locality) {
183 ASSERT(locality < 0);
184 pseudoLocalities.insert(locality);
185 for (uint16_t i = 0; i < logRouterTags; i++) {
186 pseudoLocalityPopVersion[Tag(locality, i)] = 0;
187 }
188}
189
190Tag TagPartitionedLogSystem::getPseudoPopTag(Tag tag, ProcessClass::ClassType type) const {
191 switch (type) {

Callers 1

newEpochMethod · 0.80

Calls 2

TagClass · 0.85
insertMethod · 0.45

Tested by

no test coverage detected