mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 23:56:58 +03:00
Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
lazy_truncate_heap() was waiting for VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microseconds not milliseconds as originally intended. Found by code inspection. Simon Riggs
This commit is contained in:
parent
d2a5b2b28f
commit
e1dddf3e89
@ -1441,7 +1441,7 @@ lazy_truncate_heap(Relation onerel, LVRelStats *vacrelstats)
|
||||
return;
|
||||
}
|
||||
|
||||
pg_usleep(VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL);
|
||||
pg_usleep(VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL * 1000L);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user