summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2009-06-25 19:05:52 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2009-06-25 19:05:52 +0000
commitebaa1952f1f2c0b6f4d1e25ad64ee978fe5abe81 (patch)
tree10de194d6bee4452b5dc81bd03e8478a3db6d596
parent8fd733bd19b2a0a8cde5a9e9a247ef361f167387 (diff)
The code to unlink dropped relations in FinishPreparedTransaction() was
acting like runs inside WAL recovery, but it doesn't. I must've copy-pasted this from a redo-function in the relation forks patch. Noticed by Tom Lane while he was looking through callers of smgrdounlink().
-rw-r--r--src/backend/access/transam/twophase.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/access/transam/twophase.c b/src/backend/access/transam/twophase.c
index 4a43579c407..6de9c73f6ef 100644
--- a/src/backend/access/transam/twophase.c
+++ b/src/backend/access/transam/twophase.c
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.53 2009/06/11 14:48:54 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.54 2009/06/25 19:05:52 heikki Exp $
*
* NOTES
* Each global transaction is associated with a global transaction
@@ -1241,10 +1241,7 @@ FinishPreparedTransaction(const char *gid, bool isCommit)
for (fork = 0; fork <= MAX_FORKNUM; fork++)
{
if (smgrexists(srel, fork))
- {
- XLogDropRelation(delrels[i], fork);
- smgrdounlink(srel, fork, false, true);
- }
+ smgrdounlink(srel, fork, false, false);
}
smgrclose(srel);
}