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

Function import_schema_snapshot

nodedb-test-support/src/array_sync.rs:63–73  ·  view source on GitHub ↗
(
    shared: &Arc<SharedState>,
    array_name: &str,
    bytes: &[u8],
    schema_hlc: Hlc,
)

Source from the content-addressed store, hash-verified

61/// observes the same remote HLC.
62#[allow(dead_code)]
63pub fn import_schema_snapshot(
64 shared: &Arc<SharedState>,
65 array_name: &str,
66 bytes: &[u8],
67 schema_hlc: Hlc,
68) {
69 shared
70 .array_sync_schemas
71 .import_snapshot(array_name, bytes, schema_hlc)
72 .expect("import_snapshot");
73}
74
75/// Register an array catalog entry on `shared` so the Data Plane can open
76/// the array when applying ops. Independent of schema-CRDT registration.

Callers 4

register_schema_on_allFunction · 0.85
register_schemaFunction · 0.85

Calls 2

expectMethod · 0.45
import_snapshotMethod · 0.45