mirror of
https://github.com/postgres/postgres.git
synced 2026-02-28 04:10:35 -05:00
Propagate system identifier generation improvement into pg_resetxlog.
Commit 5035701e07 improved xlog.c's method
for creating a database system identifier, but I neglected to fix the
copy of that code appearing in pg_resetxlog.c. Spotted by Andres Freund.
This commit is contained in:
parent
49cf2cd815
commit
4bcb394624
1 changed files with 2 additions and 1 deletions
|
|
@ -492,7 +492,8 @@ GuessControlValues(void)
|
|||
*/
|
||||
gettimeofday(&tv, NULL);
|
||||
sysidentifier = ((uint64) tv.tv_sec) << 32;
|
||||
sysidentifier |= (uint32) (tv.tv_sec | tv.tv_usec);
|
||||
sysidentifier |= ((uint64) tv.tv_usec) << 12;
|
||||
sysidentifier |= getpid() & 0xFFF;
|
||||
|
||||
ControlFile.system_identifier = sysidentifier;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue