mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 10:07:40 +08:00
Remove orphan span
This commit is contained in:
parent
03ab6b39e7
commit
94b260fd25
@ -521,9 +521,6 @@ fn compute_word_fst(index: &Index, wtxn: &mut RwTxn) -> Result<Option<PrefixDelt
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let span = tracing::trace_span!(target: "indexing::documents::merge", "words_fst");
|
|
||||||
let _entered = span.enter();
|
|
||||||
|
|
||||||
let (word_fst_mmap, prefix_data) = word_fst_builder.build(index, &rtxn)?;
|
let (word_fst_mmap, prefix_data) = word_fst_builder.build(index, &rtxn)?;
|
||||||
index.main.remap_types::<Str, Bytes>().put(wtxn, WORDS_FST_KEY, &word_fst_mmap)?;
|
index.main.remap_types::<Str, Bytes>().put(wtxn, WORDS_FST_KEY, &word_fst_mmap)?;
|
||||||
if let Some(PrefixData { prefixes_fst_mmap, prefix_delta }) = prefix_data {
|
if let Some(PrefixData { prefixes_fst_mmap, prefix_delta }) = prefix_data {
|
||||||
|
@ -113,7 +113,10 @@ pub fn to_call_stats<R: std::io::Read>(
|
|||||||
|
|
||||||
let span = *span;
|
let span = *span;
|
||||||
if let Some(parent_id) = span.parent_id {
|
if let Some(parent_id) = span.parent_id {
|
||||||
let (_, _, parent_self_time) = spans.get_mut(&parent_id).unwrap();
|
let Some((_, _, parent_self_time)) = spans.get_mut(&parent_id) else {
|
||||||
|
let (c, _) = calls.get_mut(&span.call_id).unwrap();
|
||||||
|
panic!("parent span not found for span: module_path: {:?}, name: {:?}, target: {:?}", c.module_path.as_deref().unwrap_or_default(), c.name, c.target);
|
||||||
|
};
|
||||||
parent_self_time.add_child_range(self_range.clone())
|
parent_self_time.add_child_range(self_range.clone())
|
||||||
}
|
}
|
||||||
total_self_time.add_child_range(self_range);
|
total_self_time.add_child_range(self_range);
|
||||||
|
Loading…
Reference in New Issue
Block a user