mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 12:54:26 +01:00
Avoid creating two read txn at the same time
This commit is contained in:
parent
8c6aeaada5
commit
441417447e
@ -293,8 +293,8 @@ impl IndexScheduler {
|
||||
|
||||
/// Returns the tasks corresponding to the query.
|
||||
pub fn get_tasks(&self, query: Query) -> Result<Vec<Task>> {
|
||||
let rtxn = self.env.read_txn()?;
|
||||
let tasks = self.get_task_ids(&query)?;
|
||||
let rtxn = self.env.read_txn()?;
|
||||
|
||||
let tasks = self.get_existing_tasks(
|
||||
&rtxn,
|
||||
|
Loading…
Reference in New Issue
Block a user