Method
insert_into
(
map: &mut ObjectMemoryMap,
storage: &ObjectID,
compat: &ObjectID,
kind: MapType,
)
Source from the content-addressed store, hash-verified
| 601 | } |
| 602 | |
| 603 | fn insert_into( |
| 604 | map: &mut ObjectMemoryMap, |
| 605 | storage: &ObjectID, |
| 606 | compat: &ObjectID, |
| 607 | kind: MapType, |
| 608 | ) { |
| 609 | map.to_compat.insert( |
| 610 | storage.clone(), |
| 611 | MappedObject { |
| 612 | oid: compat.clone(), |
| 613 | kind, |
| 614 | }, |
| 615 | ); |
| 616 | map.to_storage.insert( |
| 617 | compat.clone(), |
| 618 | MappedObject { |
| 619 | oid: storage.clone(), |
| 620 | kind, |
| 621 | }, |
| 622 | ); |
| 623 | } |
| 624 | |
| 625 | #[allow(dead_code)] |
| 626 | fn map_object(&self, oid: &ObjectID, algo: HashAlgorithm) -> Option<&MappedObject> { |
Callers
nothing calls this directly
Tested by
no test coverage detected