Skip to main content

set_read_repairs_enabled

Function set_read_repairs_enabled 

Source
pub fn set_read_repairs_enabled(enabled: bool) -> bool
Expand description

Configure whether read repairs are globally enabled.

Called once during configuration validation; subsequent calls are silently ignored to mirror the reference engine’s read-only g_read_repairs_enabled global. Returns true when the value was installed and false when an earlier call already pinned it.

§Examples

use dynomite::msg::set_read_repairs_enabled;
// Calling twice from a single test wins or loses depending on
// whether anyone else got there first; the API is idempotent.
let _ = set_read_repairs_enabled(true);