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:
f5462de
)
Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
author
Simon Riggs
<
[email protected]
>
Fri, 9 Sep 2016 10:45:40 +0000
(11:45 +0100)
committer
Simon Riggs
<
[email protected]
>
Fri, 9 Sep 2016 10:45:40 +0000
(11:45 +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 84d73b2676fd5f7cb4a038342f12d920b3719f79..8aefa7aaa9ec7bd60b531931a49d4b3e673b5720 100644
(file)
--- a/
src/backend/commands/vacuumlazy.c
+++ b/
src/backend/commands/vacuumlazy.c
@@
-1354,7
+1354,7
@@
lazy_truncate_heap(Relation onerel, LVRelStats *vacrelstats)
return;
}
- pg_usleep(VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL);
+ pg_usleep(VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
* 1000L
);
}
/*