projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08fdfe7
)
Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
author
Simon Riggs
<
[email protected]
>
Fri, 9 Sep 2016 10:46:03 +0000
(11:46 +0100)
committer
Simon Riggs
<
[email protected]
>
Fri, 9 Sep 2016 10:46:03 +0000
(11:46 +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 25278025b0db571e08399592897a779b604d62a3..c92f722dde1be621c7863ceb4922151bee9ecdb3 100644
(file)
--- a/
src/backend/commands/vacuumlazy.c
+++ b/
src/backend/commands/vacuumlazy.c
@@
-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
);
}
/*