| 522 | } |
| 523 | |
| 524 | void |
| 525 | DmtcpWorker::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 | } |
nothing calls this directly
no test coverage detected