Extract the must_stop flag out of the RwLock

This commit is contained in:
Kerollmops
2022-10-19 11:22:59 +02:00
committed by Clément Renault
parent 3cbfacb616
commit b373d19831
3 changed files with 43 additions and 22 deletions

View File

@ -14,6 +14,7 @@ use crate::{index_mapper::IndexMapper, IndexScheduler, Kind, Status};
pub fn snapshot_index_scheduler(scheduler: &IndexScheduler) -> String {
let IndexScheduler {
autobatching_enabled,
must_stop_processing,
processing_tasks,
file_store,
env,