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

Method getTagData

fdbserver/TLogServer.actor.cpp:526–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524 std::map<Tag, Promise<Void>> waitingTags;
525
526 Reference<TagData> getTagData(Tag tag) {
527 int idx = tag.toTagDataIndex();
528 if (idx >= tag_data.size()) {
529 tag_data.resize(idx + 1);
530 }
531 if (tag.id >= tag_data[idx].size()) {
532 tag_data[idx].resize(tag.id + 1);
533 }
534 return tag_data[idx][tag.id];
535 }
536
537 // only callable after getTagData returns a null reference
538 Reference<TagData> createTagData(Tag tag,

Calls 3

toTagDataIndexMethod · 0.80
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected