mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Add more logs about read txns
This commit is contained in:
parent
c83c1a3c51
commit
5dab435d13
1 changed files with 4 additions and 0 deletions
|
@ -620,6 +620,8 @@ fn hair_dryer(
|
||||||
let env = unsafe { EnvOpenOptions::new().max_dbs(100).open(&index_scheduler_path) }
|
let env = unsafe { EnvOpenOptions::new().max_dbs(100).open(&index_scheduler_path) }
|
||||||
.with_context(|| format!("While trying to open {:?}", index_scheduler_path.display()))?;
|
.with_context(|| format!("While trying to open {:?}", index_scheduler_path.display()))?;
|
||||||
|
|
||||||
|
eprintln!("Trying to get a read transaction on the index scheduler...");
|
||||||
|
|
||||||
let rtxn = env.read_txn()?;
|
let rtxn = env.read_txn()?;
|
||||||
let index_mapping: Database<Str, UuidCodec> =
|
let index_mapping: Database<Str, UuidCodec> =
|
||||||
try_opening_database(&env, &rtxn, "index-mapping")?;
|
try_opening_database(&env, &rtxn, "index-mapping")?;
|
||||||
|
@ -633,6 +635,8 @@ fn hair_dryer(
|
||||||
format!("While trying to open the index at path {:?}", index_path.display())
|
format!("While trying to open the index at path {:?}", index_path.display())
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
|
eprintln!("Trying to get a read transaction on the {uid} index...");
|
||||||
|
|
||||||
let rtxn = index.read_txn()?;
|
let rtxn = index.read_txn()?;
|
||||||
for part in index_parts {
|
for part in index_parts {
|
||||||
match part {
|
match part {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue