Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dcb12ce

Browse files
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
1 parent 67e1e2a commit dcb12ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/vacuumlazy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ lazy_truncate_heap(Relation onerel, LVRelStats *vacrelstats)
17471747
return;
17481748
}
17491749

1750-
pg_usleep(VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL);
1750+
pg_usleep(VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL * 1000L);
17511751
}
17521752

17531753
/*

0 commit comments

Comments
 (0)