mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-12 06:24:29 +01:00
fix: Fix a bug in the Database open-index method
This commit is contained in:
parent
2844cb5bca
commit
9bba90c47e
@ -115,7 +115,7 @@ impl Database {
|
|||||||
occupied.get().clone()
|
occupied.get().clone()
|
||||||
},
|
},
|
||||||
Entry::Vacant(vacant) => {
|
Entry::Vacant(vacant) => {
|
||||||
if !self.indexes()?.map_or(false, |x| !x.contains(name)) {
|
if !self.indexes()?.map_or(false, |x| x.contains(name)) {
|
||||||
return Ok(None)
|
return Ok(None)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user