mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Change the behavior of the as_cloneable_grenad by taking a ref
This commit is contained in:
parent
f367cc2e75
commit
ff8d7a810d
5 changed files with 21 additions and 45 deletions
|
@ -12,7 +12,7 @@ use super::helpers::{
|
|||
CursorClonableMmap,
|
||||
};
|
||||
use crate::heed_codec::facet::{decode_prefix_string, encode_prefix_string};
|
||||
use crate::update::index_documents::helpers::into_clonable_grenad;
|
||||
use crate::update::index_documents::helpers::as_cloneable_grenad;
|
||||
use crate::{
|
||||
lat_lng_to_xyz, BoRoaringBitmapCodec, CboRoaringBitmapCodec, DocumentId, GeoPoint, Index,
|
||||
Result,
|
||||
|
@ -87,7 +87,7 @@ pub(crate) fn write_typed_chunk_into_index(
|
|||
return Ok((documents_ids, is_merged_database))
|
||||
}
|
||||
TypedChunk::WordDocids(word_docids_iter) => {
|
||||
let word_docids_iter = unsafe { into_clonable_grenad(word_docids_iter) }?;
|
||||
let word_docids_iter = unsafe { as_cloneable_grenad(&word_docids_iter) }?;
|
||||
append_entries_into_database(
|
||||
word_docids_iter.clone(),
|
||||
&index.word_docids,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue