mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-23 18:10:39 +00:00
Different request types have different timeouts (for example, read requests have shorter timeouts than truncate requests), and also different request sources have different timeouts (for example, an internal local query wants infinite timeout while a user query has a user-defined timeout). To allow for this, define two types: timeout_config represents the timeout configuration for a source (e.g. user), while timeout_config_selector represents the request type, and is used to select a timeout within a timeout configuration. The latter is implemented as a pointer-to-member. Also introduce an infinite timeout configuration for internal queries.
217 KiB
217 KiB