fix converse result of is_task_processing()

This commit is contained in:
Cong Chen 2023-06-30 11:28:18 +08:00
parent e3fc7112bc
commit a5a31667b0

View File

@ -796,7 +796,7 @@ impl IndexScheduler {
// Return true if there is at least one task that is processing.
pub fn is_task_processing(&self) -> Result<bool> {
Ok(self.processing_tasks.read().unwrap().processing.is_empty())
Ok(!self.processing_tasks.read().unwrap().processing.is_empty())
}
/// Return true iff there is at least one task associated with this index