drop poh lock after record (#15930)
(cherry picked from commit 5460fb10a2
)
This commit is contained in:
committed by
Michael Vines
parent
2bc21ecba2
commit
08b9da8397
@ -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 {
|
||||
|
Reference in New Issue
Block a user