Function
import_schema_snapshot
(
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)] |
| 63 | pub 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. |