Expose the env closing event so we can wait for the index to close

This commit is contained in:
Clément Renault
2025-10-07 14:29:42 +02:00
committed by Kerollmops
parent 38cbd54604
commit 202794f620
2 changed files with 13 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ use std::time::Duration;
use std::{fs, thread};
use meilisearch_types::heed::types::{SerdeJson, Str};
use meilisearch_types::heed::{Database, Env, RoTxn, RwTxn, WithoutTls};
use meilisearch_types::heed::{Database, Env, EnvClosingEvent, RoTxn, RwTxn, WithoutTls};
use meilisearch_types::milli;
use meilisearch_types::milli::database_stats::DatabaseStats;
use meilisearch_types::milli::index::RollbackOutcome;