The code to unlink dropped relations in FinishPreparedTransaction() was
authorHeikki Linnakangas <heikki@enterprisedb.com>
Thu, 25 Jun 2009 19:05:52 +0000 (19:05 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Thu, 25 Jun 2009 19:05:52 +0000 (19:05 +0000)
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

index c6aaecae0d6795c1d4de2cc4164a12a581b7b466..9434f8ff2ef9825243c42d034dd7eca7d8c2e831 100644 (file)
@@ -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);
        }