Skip to main content

validate_cluster_replica

Function validate_cluster_replica 

Source
fn validate_cluster_replica(
    cluster_replica: Option<&str>,
) -> Result<(), McpRequestError>
Expand description

Rejects an empty or whitespace-only cluster_replica. Such a name would otherwise produce SET CLUSTER_REPLICA = '', which fails deep in the engine as a generic execution error rather than a clean validation error. None (no replica pin requested) is always valid.