OSDN Git Service

Fix bug in comment of timeline history file.
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 14 Oct 2010 18:06:06 +0000 (19:06 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 14 Oct 2010 18:06:06 +0000 (19:06 +0100)
Fujii Masao

src/backend/access/transam/xlog.c

index 5aae282..50e9ca3 100644 (file)
@@ -4369,7 +4369,7 @@ writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI,
                                 xlogfname,
                                 recoveryStopAfter ? "after" : "before",
                                 recoveryStopXid);
-       if (recoveryTarget == RECOVERY_TARGET_TIME)
+       else if (recoveryTarget == RECOVERY_TARGET_TIME)
                snprintf(buffer, sizeof(buffer),
                                 "%s%u\t%s\t%s %s\n",
                                 (srcfd < 0) ? "" : "\n",