OSDN Git Service

Remove no-longer-used XLogCacheByte field of XLogCtl.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Mar 2008 02:13:22 +0000 (02:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Mar 2008 02:13:22 +0000 (02:13 +0000)
Itagaki Takahiro

src/backend/access/transam/xlog.c

index f61af0a..3990f1d 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
  * 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 */
        XLogRecPtr *xlblocks;           /* 1st byte ptr-s + XLOG_BLCKSZ */
-       Size            XLogCacheByte;  /* # bytes in xlog buffers */
        int                     XLogCacheBlck;  /* highest allocated xlog buffer index */
        TimeLineID      ThisTimeLineID;
 
@@ -4152,8 +4151,6 @@ XLOGShmemInit(void)
         * Do basic initialization of XLogCtl shared data. (StartupXLOG will fill
         * in additional info.)
         */
-       XLogCtl->XLogCacheByte = (Size) XLOG_BLCKSZ *XLOGbuffers;
-
        XLogCtl->XLogCacheBlck = XLOGbuffers - 1;
        XLogCtl->Insert.currpage = (XLogPageHeader) (XLogCtl->pages);
        SpinLockInit(&XLogCtl->info_lck);