Skip to content

Commit 01f2547

Browse files
committed
Init ShmemVariableCache in BootStrapXLOG()
(should fix OID bootstraping).
1 parent fdbd6ca commit 01f2547

File tree

1 file changed

+5
-1
lines changed
  • src/backend/access/transam

1 file changed

+5
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.28 2000/11/20 05:18:39 vadim Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.29 2000/11/21 02:11:06 vadim Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -1294,6 +1294,10 @@ BootStrapXLOG()
12941294
checkPoint.nextOid = BootstrapObjectIdData;
12951295
checkPoint.ThisStartUpID = 0;
12961296

1297+
ShmemVariableCache->nextXid = checkPoint.nextXid;
1298+
ShmemVariableCache->nextOid = checkPoint.nextOid;
1299+
ShmemVariableCache->oidCount = 0;
1300+
12971301
#ifdef XLOG
12981302

12991303
memset(buffer, 0, BLCKSZ);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy