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

Method getSplitPoints

fdbserver/storageserver.actor.cpp:1480–1487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1478 }
1479
1480 void getSplitPoints(SplitRangeRequest const& req) {
1481 try {
1482 Optional<TenantMapEntry> entry = getTenantEntry(version.get(), req.tenantInfo);
1483 metrics.getSplitPoints(req, entry.map<Key>([](TenantMapEntry e) { return e.prefix; }));
1484 } catch (Error& e) {
1485 req.reply.sendError(e);
1486 }
1487 }
1488
1489 void maybeInjectTargetedRestart(Version v) {
1490 // inject an SS restart at most once per test

Callers 2

Future<Void> metricsCoreFunction · 0.45

Calls 3

getTenantEntryFunction · 0.85
getMethod · 0.65
sendErrorMethod · 0.45

Tested by

no test coverage detected