risingwave_common::system_param

Function set_system_param

source
pub fn set_system_param(
    params: &mut PbSystemParams,
    key: &str,
    value: Option<impl AsRef<str>>,
) -> Result<Option<(String, SystemParamsDiff)>, SystemParamsError>
Expand description

Set a system parameter with the given value or default one.

Returns the new value if changed, or an error if the parameter is unrecognized or the value is invalid.