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

Function rebootProcess

fdbrpc/sim2.actor.cpp:1661–1671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1659 ASSERT(!protectedAddresses.count(machine->address) || machine->rebooting || machine->isSpawnedKVProcess());
1660 }
1661 void rebootProcess(ProcessInfo* process, KillType kt) override {
1662 if (kt == RebootProcessAndDelete && protectedAddresses.count(process->address)) {
1663 TraceEvent("RebootChanged")
1664 .detail("ZoneId", process->locality.describeZone())
1665 .detail("KillType", RebootProcess)
1666 .detail("OrigKillType", kt)
1667 .detail("Reason", "Protected process");
1668 kt = RebootProcess;
1669 }
1670 doReboot(process, kt);
1671 }
1672 void rebootProcess(Optional<Standalone<StringRef>> zoneId, bool allProcesses) override {
1673 if (allProcesses) {
1674 auto processes = getAllProcesses();

Callers

nothing calls this directly

Calls 11

TraceEventClass · 0.85
doRebootFunction · 0.85
getAllProcessesFunction · 0.85
swapAndPopFunction · 0.85
deterministicRandomFunction · 0.85
detailMethod · 0.80
describeZoneMethod · 0.80
zoneIdMethod · 0.80
randomChoiceMethod · 0.80
countMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected