mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-28 10:30:40 +00:00
avoid holding locks when a thread is sleeping
Signed-off-by: Yuchen Liang <yuchen@neon.tech>
This commit is contained in:
@@ -53,6 +53,7 @@ fn lsn_lease_loop(compute: Arc<ComputeNode>, lsn: Lsn) {
|
||||
let configs = postgres_configs_from_state(&state);
|
||||
|
||||
let cmd = format!("lease lsn {} {} {} ", spec.tenant_id, spec.timeline_id, lsn);
|
||||
drop(state);
|
||||
|
||||
match lsn_lease_request(&configs, &cmd) {
|
||||
Ok(valid_until) => {
|
||||
|
||||
Reference in New Issue
Block a user