mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 07:26:26 +00:00 
			
		
		
		
	fixes
This commit is contained in:
		| @@ -1395,15 +1395,17 @@ impl IndexScheduler { | ||||
|                 Ok(tasks) | ||||
|             } | ||||
|             IndexOperation::DocumentEdition { mut task, .. } => { | ||||
|                 let (filter, context, code) = | ||||
|                     if let KindWithContent::DocumentEdition { | ||||
|                         filter_expr, context, function, .. | ||||
|                     } = &task.kind | ||||
|                     { | ||||
|                         (filter_expr, context, function) | ||||
|                     } else { | ||||
|                         unreachable!() | ||||
|                     }; | ||||
|                 let (filter, code) = if let KindWithContent::DocumentEdition { | ||||
|                     filter_expr, | ||||
|                     context: _, | ||||
|                     function, | ||||
|                     .. | ||||
|                 } = &task.kind | ||||
|                 { | ||||
|                     (filter_expr, function) | ||||
|                 } else { | ||||
|                     unreachable!() | ||||
|                 }; | ||||
|  | ||||
|                 let candidates = match filter.as_ref().map(Filter::from_json) { | ||||
|                     Some(Ok(Some(filter))) => { | ||||
|   | ||||
| @@ -971,6 +971,8 @@ impl IndexScheduler { | ||||
|         let ProcessingTasks { started_at, processing, progress, .. } = | ||||
|             self.processing_tasks.read().map_err(|_| Error::CorruptedTaskQueue)?.clone(); | ||||
|  | ||||
|         let _ = progress; | ||||
|  | ||||
|         let ret = tasks.into_iter(); | ||||
|         if processing.is_empty() { | ||||
|             Ok((ret.collect(), total)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user