projects
/
users
/
heikki
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67e1e2a
)
Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
author
Simon Riggs
<simon@2ndQuadrant.com>
Tue, 6 Sep 2016 14:35:47 +0000
(15:35 +0100)
committer
Simon Riggs
<simon@2ndQuadrant.com>
Tue, 6 Sep 2016 14:35:47 +0000
(15:35 +0100)
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
src/backend/commands/vacuumlazy.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/vacuumlazy.c
b/src/backend/commands/vacuumlazy.c
index 231e92d8e46a0c5944543c3c817c30abea122619..b5fb3250071bd3d4c8c1e92dde41694a8a09d899 100644
(file)
--- 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
);
}
/*