mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-12-01 09:34:58 +08:00
Add span around commit
This commit is contained in:
parent
aa460819a7
commit
fa15be5bc4
@ -1024,7 +1024,13 @@ impl IndexScheduler {
|
|||||||
|
|
||||||
let mut index_wtxn = index.write_txn()?;
|
let mut index_wtxn = index.write_txn()?;
|
||||||
let tasks = self.apply_index_operation(&mut index_wtxn, &index, op)?;
|
let tasks = self.apply_index_operation(&mut index_wtxn, &index, op)?;
|
||||||
index_wtxn.commit()?;
|
|
||||||
|
{
|
||||||
|
let span = tracing::trace_span!(target: "indexing::scheduler", "commit");
|
||||||
|
let _entered = span.enter();
|
||||||
|
|
||||||
|
index_wtxn.commit()?;
|
||||||
|
}
|
||||||
|
|
||||||
// if the update processed successfully, we're going to store the new
|
// if the update processed successfully, we're going to store the new
|
||||||
// stats of the index. Since the tasks have already been processed and
|
// stats of the index. Since the tasks have already been processed and
|
||||||
|
Loading…
Reference in New Issue
Block a user