/// extend blobs which belong to ChunkDict and setup real_blob_idx map
/// should call this function after import parent bootstrap
/// otherwise will break blobs order
extend blobs which belong to ChunkDict and setup real_blob_idx map
should call this function after import parent bootstrap
otherwise will break blobs order
extend blobs which belong to ChunkDict and setup real_blob_idx map should call this function after import parent bootstrap otherwise will break blobs order
pub fn extend_blob_table_from_chunk_dict(&mut self) -> Result<()> {
        let blobs = self.chunk_dict_ref.get_blobs();
        for blob in blobs.iter() {
            if let Some(real_idx) = self.get_blob_idx_by_id(blob.blob_id()) {
                self.chunk_dict_ref
                    .set_real_blob_idx(blob.blob_index(), real_idx);
            } else {
                let idx = self.alloc_index()?;
                self.add(BlobContext::from(blob.as_ref()));
                self.chunk_dict_ref
                    .set_real_blob_idx(blob.blob_index(), idx);
            }
        }
        Ok(())
    }
pub fn extend_blob_table_from_chunk_dict ( & mut self ) -> Result < ( ) > { let blobs = self . chunk_dict_ref . get_blobs ( ) ; for blob in blobs . iter ( ) { if let Some ( real_idx ) = self . get_blob_idx_by_id ( blob . blob_id ( ) ) { self . chunk_dict_ref . set_real_blob_idx ( blob . blob_index ( ) , real_idx ) ; } else { let idx = self . alloc_index ( ) ? ; self . add ( BlobContext :: from ( blob . as_ref ( ) ) ) ; self . chunk_dict_ref . set_real_blob_idx ( blob . blob_index ( ) , idx ) ; } } Ok ( ( ) ) }
extend blobs which belong to ChunkDict and setup real_blob_idx map
should call this function after import parent bootstrap
otherwise will break blobs order
extend blobs which belong to ChunkDict and setup real_blob_idx map should call this function after import parent bootstrap otherwise will break blobs order
&mut self