mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Remove no-longer-used XLogCacheByte field of XLogCtl.
Itagaki Takahiro
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.293 2008/02/17 02:09:27 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.294 2008/03/10 02:13:22 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -299,7 +299,6 @@ typedef struct XLogCtlData
|
|||||||
*/
|
*/
|
||||||
char *pages; /* buffers for unwritten XLOG pages */
|
char *pages; /* buffers for unwritten XLOG pages */
|
||||||
XLogRecPtr *xlblocks; /* 1st byte ptr-s + XLOG_BLCKSZ */
|
XLogRecPtr *xlblocks; /* 1st byte ptr-s + XLOG_BLCKSZ */
|
||||||
Size XLogCacheByte; /* # bytes in xlog buffers */
|
|
||||||
int XLogCacheBlck; /* highest allocated xlog buffer index */
|
int XLogCacheBlck; /* highest allocated xlog buffer index */
|
||||||
TimeLineID ThisTimeLineID;
|
TimeLineID ThisTimeLineID;
|
||||||
|
|
||||||
@ -4152,8 +4151,6 @@ XLOGShmemInit(void)
|
|||||||
* Do basic initialization of XLogCtl shared data. (StartupXLOG will fill
|
* Do basic initialization of XLogCtl shared data. (StartupXLOG will fill
|
||||||
* in additional info.)
|
* in additional info.)
|
||||||
*/
|
*/
|
||||||
XLogCtl->XLogCacheByte = (Size) XLOG_BLCKSZ *XLOGbuffers;
|
|
||||||
|
|
||||||
XLogCtl->XLogCacheBlck = XLOGbuffers - 1;
|
XLogCtl->XLogCacheBlck = XLOGbuffers - 1;
|
||||||
XLogCtl->Insert.currpage = (XLogPageHeader) (XLogCtl->pages);
|
XLogCtl->Insert.currpage = (XLogPageHeader) (XLogCtl->pages);
|
||||||
SpinLockInit(&XLogCtl->info_lck);
|
SpinLockInit(&XLogCtl->info_lck);
|
||||||
|
Reference in New Issue
Block a user