update to the latest version of cellulite and steppe

This commit is contained in:
Tamo
2025-07-22 16:24:49 +02:00
parent 44dc64accb
commit e923154c90
11 changed files with 97 additions and 140 deletions

View File

@ -32,7 +32,6 @@ pub fn write_to_db(
let _entered = span.enter();
let span = tracing::trace_span!(target: "indexing::write_db", "post_merge");
let mut _entered_post_merge = None;
let cellulite = cellulite::Cellulite::new(index.cellulite);
while let Some(action) = writer_receiver.recv_action() {
if _entered_post_merge.is_none()
&& finished_extraction.load(std::sync::atomic::Ordering::Relaxed)
@ -76,10 +75,10 @@ pub fn write_to_db(
ReceiverAction::GeoJson(docid, geojson) => {
match geojson {
Some(geojson) => {
cellulite.add(wtxn, docid, &geojson).map_err(InternalError::CelluliteError)?;
index.cellulite.add(wtxn, docid, &geojson).map_err(InternalError::CelluliteError)?;
}
None => {
cellulite.delete(wtxn, docid).map_err(InternalError::CelluliteError)?;
index.cellulite.delete(wtxn, docid).map_err(InternalError::CelluliteError)?;
}
}
}