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

src/backend/access/transam/xlog.c

index 15b3476c26fad55bcadf51fdb4cf39aa89bfd201..b70687bd37ccf5450b0a58e15f0e2755dcd2318f 100644 (file)
@@ -4361,7 +4361,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",