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

Function simulate

fdbserver/SimulatedCluster.actor.cpp:451–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449
450template <class T>
451T simulate(const T& in) {
452 BinaryWriter writer(AssumeVersion(g_network->protocolVersion()));
453 writer << in;
454 BinaryReader reader(writer.getData(), writer.getLength(), AssumeVersion(g_network->protocolVersion()));
455 T out;
456 reader >> out;
457 return out;
458}
459
460ACTOR Future<Void> runBackup(Reference<IClusterConnectionRecord> connRecord) {
461 state std::vector<Future<Void>> agentFutures;

Callers

nothing calls this directly

Calls 4

AssumeVersionFunction · 0.85
getLengthMethod · 0.80
protocolVersionMethod · 0.45
getDataMethod · 0.45

Tested by

no test coverage detected