MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / postRestart

Method postRestart

src/dmtcpworker.cpp:524–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524void
525DmtcpWorker::postRestart(double ckptReadTime)
526{
527 JTRACE("begin postRestart()");
528 WorkerState::setCurrentState(WorkerState::RESTARTING);
529
530 JTRACE("Waiting for Restart barrier");
531 CoordinatorAPI::waitForBarrier("DMT:Restart");
532
533 PluginManager::eventHook(DMTCP_EVENT_RESTART);
534
535 JTRACE("got resume message after restart");
536
537 {
538 // Send ckpt maps to coordinator.
539 string workerPath("/worker/" + ProcessInfo::instance().upidStr());
540 ProcSelfMaps procSelfMaps;
541 kvdb::set(
542 workerPath,
543 "ProcSelfMaps_Rst",
544 procSelfMaps.getData());
545 }
546
547 // Inform Coordinator of RUNNING state.
548 WorkerState::setCurrentState(WorkerState::RUNNING);
549 JTRACE("Informing coordinator of RUNNING status") (UniquePid::ThisProcess());
550 CoordinatorAPI::sendMsgToCoordinator(DMT_WORKER_RESUMING);
551}

Callers

nothing calls this directly

Calls 6

setCurrentStateFunction · 0.85
waitForBarrierFunction · 0.85
eventHookFunction · 0.85
sendMsgToCoordinatorFunction · 0.85
getDataMethod · 0.80
setFunction · 0.70

Tested by

no test coverage detected