mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Bump heed to 0.8.0 and handle abort errors
This commit is contained in:
parent
166a301c7f
commit
8cebf78485
4 changed files with 7 additions and 7 deletions
|
@ -18,7 +18,7 @@ either = "1.5.3"
|
|||
env_logger = "0.7.1"
|
||||
fst = "0.4.4"
|
||||
hashbrown = { version = "0.7.1", features = ["serde"] }
|
||||
heed = "0.7.0"
|
||||
heed = "0.8.0"
|
||||
indexmap = { version = "1.3.2", features = ["serde-1"] }
|
||||
intervaltree = "0.2.5"
|
||||
itertools = "0.9.0"
|
||||
|
|
|
@ -104,7 +104,7 @@ fn update_awaiter(
|
|||
};
|
||||
|
||||
// do not keep the reader for too long
|
||||
update_reader.abort();
|
||||
break_try!(update_reader.abort(), "aborting update transaction failed");
|
||||
|
||||
// instantiate a transaction to touch to the main env
|
||||
let result = env.typed_write_txn::<MainT>();
|
||||
|
@ -118,7 +118,7 @@ fn update_awaiter(
|
|||
if status.error.is_none() {
|
||||
break_try!(main_writer.commit(), "commit nested transaction failed");
|
||||
} else {
|
||||
main_writer.abort()
|
||||
break_try!(main_writer.abort(), "abborting nested transaction failed");
|
||||
}
|
||||
|
||||
// now that the update has been processed we can instantiate
|
||||
|
@ -178,7 +178,7 @@ impl Database {
|
|||
must_open.push(index_uid.to_owned());
|
||||
}
|
||||
|
||||
reader.abort();
|
||||
reader.abort()?;
|
||||
|
||||
// open the previously aggregated indexes
|
||||
let mut indexes = HashMap::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue