Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5871f09

Browse files
committed
Fix autovacuum cancellation.
The problem is caused by me (Andres) having ProcSleep() look at thewrong PGPROC entry in5788e25.Unfortunately it seems hard to write a reliable test for autovacuumcancellations. Perhaps somebody will come up with a good approach, butit seems worth fixing the issue even without a test.Reported-By: Jeff Janes <jeff.janes@gmail.com>Author: Jeff Janes <jeff.janes@gmail.com>Discussion:https://postgr.es/m/CAMkU=1wH2aUy+wDRDz+5RZALdcUnEofV1t9PzXS_gBJO9vZZ0Q@mail.gmail.com
1 parent3438c98 commit5871f09

File tree

1 file changed

+1
-1
lines changed
  • src/backend/storage/lmgr

1 file changed

+1
-1
lines changed

‎src/backend/storage/lmgr/proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ ProcSleep(LOCALLOCK *locallock, LockMethod lockMethodTable)
13181318
* Only do it if the worker is not working to protect against Xid
13191319
* wraparound.
13201320
*/
1321-
vacuumFlags=ProcGlobal->vacuumFlags[proc->pgxactoff];
1321+
vacuumFlags=ProcGlobal->vacuumFlags[autovac->pgxactoff];
13221322
if ((vacuumFlags&PROC_IS_AUTOVACUUM)&&
13231323
!(vacuumFlags&PROC_VACUUM_FOR_WRAPAROUND))
13241324
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp