Re: Small xlog.c cleanup

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Small xlog.c cleanup
Дата
Msg-id 200102271723.MAA19242@candle.pha.pa.us
обсуждение исходный текст
Ответ на Small xlog.c cleanup  (Matthew Kirkwood <matthew@hairy.beasts.org>)
Ответы Re: Small xlog.c cleanup  (Matthew Kirkwood <matthew@hairy.beasts.org>)
Список pgsql-patches
All source gets reformatted before release by src/tools/pgindent anyway.

> Hi,
>
> Here's a teeny-tiny cleanup (and thus comprehensibility
> fix) for xlog.c.
>
> Matthew.
>
>
> --- /home/matthew/xlog.c    Tue Feb 27 17:12:24 2001
> +++ xlog.c    Tue Feb 27 17:16:04 2001
> @@ -282,10 +282,6 @@
>
>  static XLogRecPtr ReadRecPtr;
>  static XLogRecPtr EndRecPtr;
> -static int    readFile = -1;
> -static uint32 readId = 0;
> -static uint32 readSeg = 0;
> -static uint32 readOff = 0;
>  static char readBuf[BLCKSZ];
>  static XLogRecord *nextRecord = NULL;
>
> @@ -1214,6 +1210,10 @@
>      bool        nextmode = (RecPtr == NULL);
>      int            emode = (nextmode) ? LOG : STOP;
>      bool        noBlck = false;
> +    static int    readFile = -1;
> +    static uint32 readId = 0;
> +    static uint32 readSeg = 0;
> +    static uint32 readOff = 0;
>
>      if (nextmode)
>      {
>
>


--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

В списке pgsql-patches по дате отправления:

Предыдущее
От: Matthew Kirkwood
Дата:
Сообщение: Small xlog.c cleanup
Следующее
От: Matthew Kirkwood
Дата:
Сообщение: Re: Small xlog.c cleanup