From 1814b2bc81aca29b322f8e1f280494c1b9ee6b32 Mon Sep 17 00:00:00 2001 From: Brooks Date: Fri, 27 Oct 2023 13:03:33 -0400 Subject: [PATCH] Adds logs for starting/stopping of the background account hasher (#33903) --- accounts-db/src/accounts_db.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index 92c144ac0..2084c8197 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -2926,6 +2926,7 @@ impl AccountsDb { } fn background_hasher(receiver: Receiver) { + info!("Background account hasher has started"); loop { let result = receiver.recv(); match result { @@ -2936,11 +2937,13 @@ impl AccountsDb { let _ = (*account).hash(); }; } - Err(_) => { + Err(err) => { + info!("Background account hasher is stopping because: {err}"); break; } } } + info!("Background account hasher has stopped"); } fn start_background_hasher(&mut self) {