From 08b9da8397cbca2f2811409083586c7d986949c5 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Wed, 17 Mar 2021 10:37:20 -0500 Subject: [PATCH] drop poh lock after record (#15930) (cherry picked from commit 5460fb10a262f9ff9f4dc563a667e3a8b76fe0f4) --- core/src/poh_recorder.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/poh_recorder.rs b/core/src/poh_recorder.rs index 4202ad4956..432aabce83 100644 --- a/core/src/poh_recorder.rs +++ b/core/src/poh_recorder.rs @@ -448,6 +448,7 @@ impl PohRecorder { self.record_lock_contention_us += timing::duration_as_us(&now.elapsed()); let now = Instant::now(); let res = poh_lock.record(mixin); + drop(poh_lock); self.record_us += timing::duration_as_us(&now.elapsed()); if let Some(poh_entry) = res { let entry = Entry {