mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 21:20:24 +01:00
Fix a blocking channel, appearing like a deadlock
This commit is contained in:
parent
20b92fcb4c
commit
691e2a3c1d
@ -168,7 +168,7 @@ impl Database {
|
||||
// open the previously aggregated indexes
|
||||
let mut indexes = HashMap::new();
|
||||
for index_uid in must_open {
|
||||
let (sender, receiver) = crossbeam_channel::bounded(100);
|
||||
let (sender, receiver) = crossbeam_channel::unbounded();
|
||||
let index = match store::open(&env, &update_env, &index_uid, sender.clone())? {
|
||||
Some(index) => index,
|
||||
None => {
|
||||
@ -233,7 +233,7 @@ impl Database {
|
||||
match indexes_lock.entry(name.to_owned()) {
|
||||
Entry::Occupied(_) => Err(crate::Error::IndexAlreadyExists),
|
||||
Entry::Vacant(entry) => {
|
||||
let (sender, receiver) = crossbeam_channel::bounded(100);
|
||||
let (sender, receiver) = crossbeam_channel::unbounded();
|
||||
let index = store::create(&self.env, &self.update_env, name, sender)?;
|
||||
|
||||
let mut writer = self.env.typed_write_txn::<MainT>()?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user