Files
neon/pageserver/src
Christian Schwarz fa54a57ca2 random_init_delay: remove the minimum of 10 seconds (#3914)
Before this patch, the range from which the random delay is picked is at
minimum 10 seconds.
With this patch, they delay is bounded to whatever the given `period`
is, and zero, if period id Duration::ZERO.

Motivation for this: the disk usage eviction tests that we'll add in
https://github.com/neondatabase/neon/pull/3905 need to wait for the disk
usage eviction background loop to do its job.
They set a period of 1s.
It seems wasteful to wait 10 seconds in the tests.

Co-authored-by: Joonas Koivunen <joonas@neon.tech>
2023-03-30 18:38:45 +02:00
..
2023-02-24 23:30:02 +04:00
2023-01-25 14:53:30 +01:00
2023-01-25 14:53:30 +01:00
2023-01-27 12:23:17 +01:00
2022-11-10 16:43:04 -05:00
2023-02-24 23:30:02 +04:00
2022-12-21 19:16:39 +01:00