mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
Don't iterate all indexes manually
This commit is contained in:
parent
5822764be9
commit
3db613ff77
6 changed files with 80 additions and 27 deletions
|
@ -254,6 +254,6 @@ pub fn snapshot_canceled_by(
|
|||
snap
|
||||
}
|
||||
pub fn snapshot_index_mapper(rtxn: &RoTxn, mapper: &IndexMapper) -> String {
|
||||
let names = mapper.indexes(rtxn).unwrap().into_iter().map(|(n, _)| n).collect::<Vec<_>>();
|
||||
let names = mapper.index_names(rtxn).unwrap();
|
||||
format!("{names:?}")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue