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

Method getTagData

fdbserver/LogRouter.actor.cpp:121–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 std::vector<Reference<TagData>> tag_data; // we only store data for the remote tag locality
120
121 Reference<TagData> getTagData(Tag tag) {
122 ASSERT(tag.locality == tagLocalityRemoteLog);
123 if (tag.id >= tag_data.size()) {
124 tag_data.resize(tag.id + 1);
125 }
126 return tag_data[tag.id];
127 }
128
129 // only callable after getTagData returns a null reference
130 Reference<TagData> createTagData(Tag tag, Version popped, Version knownCommittedVersion) {

Callers 4

commitMessagesFunction · 0.45
poppedVersionFunction · 0.45

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected