mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Init ShmemVariableCache in BootStrapXLOG()
(should fix OID bootstraping).
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.28 2000/11/20 05:18:39 vadim Exp $
|
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.29 2000/11/21 02:11:06 vadim Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1294,6 +1294,10 @@ BootStrapXLOG()
|
|||||||
checkPoint.nextOid = BootstrapObjectIdData;
|
checkPoint.nextOid = BootstrapObjectIdData;
|
||||||
checkPoint.ThisStartUpID = 0;
|
checkPoint.ThisStartUpID = 0;
|
||||||
|
|
||||||
|
ShmemVariableCache->nextXid = checkPoint.nextXid;
|
||||||
|
ShmemVariableCache->nextOid = checkPoint.nextOid;
|
||||||
|
ShmemVariableCache->oidCount = 0;
|
||||||
|
|
||||||
#ifdef XLOG
|
#ifdef XLOG
|
||||||
|
|
||||||
memset(buffer, 0, BLCKSZ);
|
memset(buffer, 0, BLCKSZ);
|
||||||
|
Reference in New Issue
Block a user