small typo in src/backend/access/transam/xlog.c

Поиск
Список
Период
Сортировка
Искать
От
didier
Тема
small typo in src/backend/access/transam/xlog.c
Дата
Msg-id
CAJRYxu+XAdmiToDM-SZd4pLn87GOeS1bGUat29pC5CDHDwvbuQ@mail.gmail.com
Список
Дерево обсуждения
small typo in src/backend/access/transam/xlog.c didier <did447@gmail.com>
Re: small typo in src/backend/access/transam/xlog.c Robert Haas <robertmhaas@gmail.com>
Re: small typo in src/backend/access/transam/xlog.c Andres Freund <andres@2ndquadrant.com>
Re: small typo in src/backend/access/transam/xlog.c Tom Lane <tgl@sss.pgh.pa.us>
Re: small typo in src/backend/access/transam/xlog.c Bruce Momjian <bruce@momjian.us>
Re: small typo in src/backend/access/transam/xlog.c Tom Lane <tgl@sss.pgh.pa.us>
Hi

in void
BootStrapXLOG(void)

      * to seed it other than the system clock value...)  The upper half of the
         * uint64 value is just the tv_sec part, while the lower half is the XOR
         * of tv_sec and tv_usec.  This is to ensure that we don't lose uniqueness
         * unnecessarily if "uint64" is really only 32 bits wide.  A person
         * knowing this encoding can determine the initialization time of the
         * installation, which could perhaps be useful sometimes.
         */
        gettimeofday(&tv, NULL);
        sysidentifier = ((uint64) tv.tv_sec) << 32;
        sysidentifier |= (uint32) (tv.tv_sec | tv.tv_usec);

should be
        sysidentifier |= (uint32) (tv.tv_sec ^ tv.tv_usec);

Regards
Didier
В списке pgsql-hackers по дате отправления
От: KONDO Mitsumasa
Дата:
От: Andres Freund
Дата:
FAQ