Centralizes probe-state transitions so conflict and tiebreak paths reset counters consistently before either retrying or stopping.
| 1185 | // Centralizes probe-state transitions so conflict and tiebreak paths reset |
| 1186 | // counters consistently before either retrying or stopping. |
| 1187 | static void ResetProbeState(RegisteredService* service, uint64_t next_probe, uint8_t state) |
| 1188 | { |
| 1189 | service->m_State = state; |
| 1190 | service->m_ProbeCount = 0; |
| 1191 | service->m_StartupAnnounceCount = 0; |
| 1192 | service->m_NextProbe = next_probe; |
| 1193 | service->m_NextAnnounce = 0; |
| 1194 | } |
| 1195 | |
| 1196 | static void DeferProbeAfterTiebreak(RegisteredService* service) |
| 1197 | { |
no outgoing calls
no test coverage detected