| 273 | } |
| 274 | |
| 275 | inline bool |
| 276 | HostDBInfo::select(ts_time now, ts_seconds fail_window) const |
| 277 | { |
| 278 | auto t0 = this->last_fail_time(); |
| 279 | if (t0 == TS_TIME_ZERO) { |
| 280 | return true; // it's alive and so is valid for selection. |
| 281 | } |
| 282 | // Return true and give it a try if enough time is elapsed since the last failure |
| 283 | return (t0 + fail_window < now); |
| 284 | } |
| 285 | |
| 286 | inline void |
| 287 | HostDBInfo::migrate_from(HostDBInfo::self_type const &that) |
no test coverage detected