1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-26 12:21:12 +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:
Simon Riggs
2016-09-09 11:46:03 +01:00
parent 08fdfe7a8a
commit 3ed7f54bc4

View File

@ -1163,7 +1163,7 @@ lazy_truncate_heap(Relation onerel, LVRelStats *vacrelstats)
return;
}
pg_usleep(VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL);
pg_usleep(VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL * 1000L);
}
/*