aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/buffer/bufmgr.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-09-17 22:16:22 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-09-17 22:16:22 +0000
commit2e5e856f6b4f4e7445ec4b14fc4504469f6f4f54 (patch)
treea5787778a831c23ad54beb0348e635b393eea944 /src/backend/storage/buffer/bufmgr.c
parentf204274191f742deb489f53ebead03a0ed0a48eb (diff)
downloadpostgresql-2e5e856f6b4f4e7445ec4b14fc4504469f6f4f54.tar.gz
postgresql-2e5e856f6b4f4e7445ec4b14fc4504469f6f4f54.zip
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.
Diffstat (limited to 'src/backend/storage/buffer/bufmgr.c')
-rw-r--r--src/backend/storage/buffer/bufmgr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c
index fd68bb91e77..147b2ef8d8b 100644
--- a/src/backend/storage/buffer/bufmgr.c
+++ b/src/backend/storage/buffer/bufmgr.c
@@ -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);
}
/*