mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Marginal cleanup in arrangements for ensuring StrategyHintVacuum is cleared
after an error during VACUUM. We have a PG_TRY block anyway around the only call sites, so just reset it in the CATCH clause instead of having AtEOXact_Buffers blindly do it during xact end. I think the old code was actively wrong for the case of a failure during ANALYZE inside a subtransaction --- the flag wouldn't get cleared until main transaction end. Probably not worth back-patching though.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.209 2006/07/23 03:07:58 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.210 2006/09/17 22:16:22 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1171,9 +1171,6 @@ AtEOXact_Buffers(bool isCommit)
|
||||
#endif
|
||||
|
||||
AtEOXact_LocalBuffers(isCommit);
|
||||
|
||||
/* Make sure we reset the strategy hint in case VACUUM errored out */
|
||||
StrategyHintVacuum(false);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user