| 244 | } |
| 245 | |
| 246 | inline bool |
| 247 | HostDBInfo::mark_up() |
| 248 | { |
| 249 | auto t = last_failure.exchange(TS_TIME_ZERO); |
| 250 | bool was_down = t != TS_TIME_ZERO; |
| 251 | if (was_down) { |
| 252 | fail_count.store(0); |
| 253 | } |
| 254 | return was_down; |
| 255 | } |
| 256 | |
| 257 | inline bool |
| 258 | HostDBInfo::mark_down(ts_time now) |
no test coverage detected