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

Method resolveVersionTimes

fdbclient/BackupContainer.actor.cpp:108–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108Future<Void> BackupDescription::resolveVersionTimes(Database cx) {
109 // Populate map with versions needed
110 versionTimeMap.clear();
111
112 for (const KeyspaceSnapshotFile& m : snapshots) {
113 versionTimeMap[m.beginVersion];
114 versionTimeMap[m.endVersion];
115 }
116 if (minLogBegin.present())
117 versionTimeMap[minLogBegin.get()];
118 if (maxLogEnd.present())
119 versionTimeMap[maxLogEnd.get()];
120 if (contiguousLogEnd.present())
121 versionTimeMap[contiguousLogEnd.get()];
122 if (minRestorableVersion.present())
123 versionTimeMap[minRestorableVersion.get()];
124 if (maxRestorableVersion.present())
125 versionTimeMap[maxRestorableVersion.get()];
126
127 return runRYWTransaction(cx,
128 [=](Reference<ReadYourWritesTransaction> tr) { return fetchTimes(tr, &versionTimeMap); });
129};
130
131std::string BackupDescription::toString() const {
132 std::string info;

Calls 4

fetchTimesFunction · 0.85
clearMethod · 0.65
getMethod · 0.65
presentMethod · 0.45

Tested by

no test coverage detected