From d011223e083aa02481aa08a95c5dd8a0e60a040c Mon Sep 17 00:00:00 2001 From: heikki Date: Thu, 25 Jun 2009 19:05:52 +0000 Subject: [PATCH] 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(). --- src/backend/access/transam/twophase.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backend/access/transam/twophase.c b/src/backend/access/transam/twophase.c index c6aaecae0d..9434f8ff2e 100644 --- a/src/backend/access/transam/twophase.c +++ b/src/backend/access/transam/twophase.c @@ -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); } -- 2.11.4.GIT