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

Function snapshot_self

nodedb/src/control/backup/orchestrator.rs:186–199  ·  view source on GitHub ↗
(
    state: &Arc<SharedState>,
    tenant_id: u64,
    plan: &PhysicalPlan,
)

Source from the content-addressed store, hash-verified

184}
185
186async fn snapshot_self(
187 state: &Arc<SharedState>,
188 tenant_id: u64,
189 plan: &PhysicalPlan,
190) -> Result<Vec<u8>, Error> {
191 sync_dispatch::dispatch_async(
192 state,
193 TenantId::new(tenant_id),
194 "__system",
195 plan.clone(),
196 NODE_SNAPSHOT_TIMEOUT,
197 )
198 .await
199}
200
201async fn snapshot_remote(
202 state: &Arc<SharedState>,

Callers 1

backup_tenantFunction · 0.85

Calls 2

dispatch_asyncFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected