mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 09:56:28 +00:00 
			
		
		
		
	fix dump priority in scheduler
This commit is contained in:
		@@ -110,8 +110,8 @@ impl Ord for TaskList {
 | 
			
		||||
                    (Some(lhs), Some(rhs)) => lhs.cmp(rhs),
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            (TaskListIdentifier::Index(_), TaskListIdentifier::Dump) => Ordering::Greater,
 | 
			
		||||
            (TaskListIdentifier::Dump, TaskListIdentifier::Index(_)) => Ordering::Less,
 | 
			
		||||
            (TaskListIdentifier::Index(_), TaskListIdentifier::Dump) => Ordering::Less,
 | 
			
		||||
            (TaskListIdentifier::Dump, TaskListIdentifier::Index(_)) => Ordering::Greater,
 | 
			
		||||
            (TaskListIdentifier::Dump, TaskListIdentifier::Dump) => {
 | 
			
		||||
                unreachable!("There should be only one Dump task list")
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user