MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / dispatch_to_data_plane

Function dispatch_to_data_plane

nodedb/src/control/server/http/routes/query.rs:256–271  ·  view source on GitHub ↗

Dispatch a physical plan locally (single-node fallback path). Called only when `shared.gateway` is `None` (pre-cluster-init boot).

(
    state: &AppState,
    tenant_id: crate::types::TenantId,
    vshard_id: VShardId,
    plan: PhysicalPlan,
    trace_id: TraceId,
)

Source from the content-addressed store, hash-verified

254///
255/// Called only when `shared.gateway` is `None` (pre-cluster-init boot).
256async fn dispatch_to_data_plane(
257 state: &AppState,
258 tenant_id: crate::types::TenantId,
259 vshard_id: VShardId,
260 plan: PhysicalPlan,
261 trace_id: TraceId,
262) -> crate::Result<crate::bridge::envelope::Response> {
263 crate::control::server::dispatch_utils::dispatch_to_data_plane(
264 &state.shared,
265 tenant_id,
266 vshard_id,
267 plan,
268 trace_id,
269 )
270 .await
271}
272
273/// Decode a Data Plane response payload to JSON.
274///

Callers 15

queryFunction · 0.70
query_ndjsonFunction · 0.70
dispatch_kvFunction · 0.50
dispatch_kv_writeFunction · 0.50
rate_checkFunction · 0.50
rate_remainingFunction · 0.50
rate_resetFunction · 0.50
read_ttl_msFunction · 0.50
dispatch_and_respondFunction · 0.50
dispatch_and_respond_tagFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected