Skip to main content

STALL_THRESHOLD

Constant STALL_THRESHOLD 

Source
pub const STALL_THRESHOLD: usize = usize::MAX; // 18_446_744_073_709_551_615usize
Expand description

The number of immutable memory tables, and of level-0 files, at which SurrealKV would stall writes, as the store sets it: the largest number there is.

SurrealKV paces writes once a count passes 2 below its memory-table threshold or 4 below its level-0 threshold, and stalls them at the threshold, so with this value it would take more than usize::MAX - 4 memory tables or files in one database, which no process can hold: write pacing, which waited on a thread in published SurrealKV, never runs, and no write stalls.