Skip to content
Snippets Groups Projects
  1. Jun 12, 2023
  2. Mar 10, 2023
  3. Dec 14, 2022
  4. Mar 14, 2022
    • Vladimír Čunát's avatar
      lib/selection: fix interaction of timeouts with reboots · 03d24b4b
      Vladimír Čunát authored
      We use "monotonic" time-stamps for the dead_since field;
      that breaks on system reboots, in which case we reset the stats.
      (if the server was categorized as dead)
      
      If the server times out afterwards, we'd fail the condition
      `cur_state.consecutive_timeouts == old_state.consecutive_timeouts`
      so its stats would not update.  Therefore we'd get stuck forever
      in a state where the unusable server has high priority (no_rtt_info).
      
      This commit changes a bit more than was necessary to fix this,
      including precision of the stats (in some cases).
      03d24b4b
  5. Dec 21, 2021
  6. Dec 20, 2021
  7. Jul 29, 2021
  8. Jun 18, 2021
    • Vladimír Čunát's avatar
      lib/selection: be more careful with RO transactions · a23bb067
      Vladimír Čunát authored and Tomas Krizek's avatar Tomas Krizek committed
      They probably couldn't hang open for long, as each client request
      should cause some cache-searching and thus close it, and even with
      queries stopping I haven't managed to find a case where it would be
      left open but... it's nicer to clean up and it should be very cheap.
      a23bb067
  9. May 25, 2021
  10. Mar 26, 2021
  11. Jan 15, 2021
  12. Jan 13, 2021
  13. Jan 08, 2021
  14. Dec 31, 2020
    • Vladimír Čunát's avatar
      lib/selection: minor refactorings and comments · bb655fde
      Vladimír Čunát authored
      Small things I've noticed while reading it all.
      - line breaks: I believe <90 is OK, as usually the attempts to reduce
        lengths impair readability
      - avoid unnecessary casts; usually the type was visible
        on the same line anyway
      - avoid `|` on booleans
      - one block gets de-indented (often badly shown in diffs)
      - no need for UNRECOVERABLE_ERRORS in a header (and a weird one, too)
      - recoverability from failed assertions (in case they're turned off)
      bb655fde
    • Štěpán Balážik's avatar
      selection: server selection rewrite · 4565cc59
      Štěpán Balážik authored and Vladimír Čunát's avatar Vladimír Čunát committed
      Design discussion: #447
      Code discussion: !1030
      4565cc59