ミラー元
https://github.com/meilisearch/MeiliSearch
同期済み 2025-07-03 11:57:07 +02:00
Improve the health route by ensuring lmdb is not down
And refactorize slightly the auth controller.
このコミットが含まれているのは:
コミット
4d308d5237
13個のファイルの変更、64行の追加、26行の削除
|
@ -429,6 +429,13 @@ impl IndexScheduler {
|
|||
Ok(this)
|
||||
}
|
||||
|
||||
/// Return `Ok(())` if the index scheduler is able to access one of its database.
|
||||
pub fn health(&self) -> Result<()> {
|
||||
let rtxn = self.env.read_txn()?;
|
||||
self.all_tasks.first(&rtxn)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn index_budget(
|
||||
tasks_path: &Path,
|
||||
base_map_size: usize,
|
||||
|
|
読み込み中…
Add table
Add a link
新しいイシューから参照