diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2016-09-09 11:43:08 +0100 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2016-09-09 11:43:08 +0100 |
commit | 1fa42debe676146f1f3e4809ef42e9a0f300e112 (patch) | |
tree | 41e5c960f3a19449738c6cb08f00653de7de3e86 /src | |
parent | 9796882e68367a9259b6d5e84bd0a227b579d586 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/commands/vacuumlazy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/vacuumlazy.c b/src/backend/commands/vacuumlazy.c index 231e92d8e46..b5fb3250071 100644 --- a/src/backend/commands/vacuumlazy.c +++ b/src/backend/commands/vacuumlazy.c @@ -1747,7 +1747,7 @@ lazy_truncate_heap(Relation onerel, LVRelStats *vacrelstats) return; } - pg_usleep(VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL); + pg_usleep(VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL * 1000L); } /* |