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

Method coord_delete

nodedb-cluster/src/distributed_array/coordinator/read.rs:238–254  ·  view source on GitHub ↗

Forward a coord-based delete to the shard(s) that own the cells.

(
        &self,
        req: ArrayShardDeleteReq,
    )

Source from the content-addressed store, hash-verified

236
237 /// Forward a coord-based delete to the shard(s) that own the cells.
238 pub async fn coord_delete(
239 &self,
240 req: ArrayShardDeleteReq,
241 ) -> Result<Vec<ArrayShardDeleteResp>> {
242 let req_bytes = zerompk::to_msgpack_vec(&req).map_err(|e| ClusterError::Codec {
243 detail: format!("ArrayShardDeleteReq serialise: {e}"),
244 })?;
245 let raw = fan_out(
246 &self.fan_out_params(),
247 super::super::opcodes::ARRAY_SHARD_DELETE_REQ,
248 &req_bytes,
249 &self.dispatch,
250 &self.circuit_breaker,
251 )
252 .await?;
253 decode_resps::<ArrayShardDeleteResp>(&raw)
254 }
255
256 /// Fan out a surrogate bitmap scan, collect per-shard bitmap bytes, and
257 /// union all bitmaps on the coordinator.

Callers

nothing calls this directly

Calls 2

fan_outFunction · 0.85
fan_out_paramsMethod · 0.80

Tested by

no test coverage detected