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

Method getLocations

fdbserver/include/fdbserver/LogSystem.h:769–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767 void addWrittenTags(const std::set<Tag>& tags) { written_tags.insert(tags.begin(), tags.end()); }
768
769 void getLocations(const std::set<Tag>& tags, std::set<uint16_t>& writtenTLogs) {
770 std::vector<Tag> vtags(tags.begin(), tags.end());
771 std::vector<int> msg_locations;
772 logSystem->getPushLocations(vtags, msg_locations, false /*allLocations*/);
773 writtenTLogs.insert(msg_locations.begin(), msg_locations.end());
774 }
775
776 void getLocations(const std::vector<Tag>& vtags, std::set<uint16_t>& writtenTLogs) {
777 std::vector<int> msg_locations;

Callers 1

Resolver.actor.cppFile · 0.80

Calls 4

beginMethod · 0.45
endMethod · 0.45
getPushLocationsMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected