mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
fix most of the index module
This commit is contained in:
parent
d8b8e04ad1
commit
a7aa92df5f
7 changed files with 45 additions and 19 deletions
|
@ -240,7 +240,7 @@ impl IndexScheduler {
|
|||
new_name,
|
||||
} => {
|
||||
if self.available_index.get(wtxn, &new_name)?.unwrap_or(false) {
|
||||
return Err(Error::IndexAlreadyExists);
|
||||
return Err(Error::IndexAlreadyExists(new_name.to_string()));
|
||||
}
|
||||
todo!("wait for @guigui insight");
|
||||
}
|
||||
|
@ -275,7 +275,10 @@ impl IndexScheduler {
|
|||
return Err(Error::IndexNotFound(rhs.to_string()));
|
||||
}
|
||||
|
||||
let index_map = self.index_map.write()?;
|
||||
let index_map = self
|
||||
.index_map
|
||||
.write()
|
||||
.map_err(|_| Error::CorruptedTaskQueue)?;
|
||||
|
||||
// index_map.remove.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue