Fix uselessly deep stack trace

This commit is contained in:
Louis Dureuil 2025-01-06 18:07:49 +01:00
parent 34f4602ae8
commit 28cc6df7a3
No known key found for this signature in database

View File

@ -180,13 +180,16 @@ impl FacetsUpdateIncrementalInner {
}
}
}
self.find_touched_parents(
wtxn,
parent_level,
touched_parents
// no need to `rev` here because the parents were already visited in reverse order
.into_iter(),
)
if !touched_parents.is_empty() {
self.find_touched_parents(
wtxn,
parent_level,
touched_parents
// no need to `rev` here because the parents were already visited in reverse order
.into_iter(),
)?;
}
Ok(())
}
fn compute_parent_group(