mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-06-01 10:28:02 +02: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