Add more logs about read txns

This commit is contained in:
Kerollmops 2025-02-11 18:14:48 +01:00
parent c83c1a3c51
commit 5dab435d13
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -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 {