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
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
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,