drop poh lock after record (#15930)

(cherry picked from commit 5460fb10a2)
This commit is contained in:
Jeff Washington (jwash)
2021-03-17 10:37:20 -05:00
committed by Michael Vines
parent 2bc21ecba2
commit 08b9da8397

View File

@ -448,6 +448,7 @@ impl PohRecorder {
self.record_lock_contention_us += timing::duration_as_us(&now.elapsed()); self.record_lock_contention_us += timing::duration_as_us(&now.elapsed());
let now = Instant::now(); let now = Instant::now();
let res = poh_lock.record(mixin); let res = poh_lock.record(mixin);
drop(poh_lock);
self.record_us += timing::duration_as_us(&now.elapsed()); self.record_us += timing::duration_as_us(&now.elapsed());
if let Some(poh_entry) = res { if let Some(poh_entry) = res {
let entry = Entry { let entry = Entry {