Skip site navigation (1) Skip section navigation (2)

Small xlog.c cleanup

From: Matthew Kirkwood <matthew(at)hairy(dot)beasts(dot)org>
To: pgsql-patches(at)postgresql(dot)org
Subject: Small xlog.c cleanup
Date: 2001-02-27 17:20:46
Message-ID: Pine.LNX.4.10.10102271717420.713-100000@sphinx.mythic-beasts.com (view raw or flat)
Thread:
Lists: pgsql-patches
Hi,

Here's a teeny-tiny cleanup (and thus comprehensibility
fix) for xlog.c.

Matthew.


--- /home/matthew/xlog.c	Tue Feb 27 17:12:24 2001
+++ xlog.c	Tue Feb 27 17:16:04 2001
@@ -282,10 +282,6 @@
 
 static XLogRecPtr ReadRecPtr;
 static XLogRecPtr EndRecPtr;
-static int	readFile = -1;
-static uint32 readId = 0;
-static uint32 readSeg = 0;
-static uint32 readOff = 0;
 static char readBuf[BLCKSZ];
 static XLogRecord *nextRecord = NULL;
 
@@ -1214,6 +1210,10 @@
 	bool		nextmode = (RecPtr == NULL);
 	int			emode = (nextmode) ? LOG : STOP;
 	bool		noBlck = false;
+	static int	readFile = -1;
+	static uint32 readId = 0;
+	static uint32 readSeg = 0;
+	static uint32 readOff = 0;
 
 	if (nextmode)
 	{


Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2001-02-27 17:23:35
Subject: Re: Small xlog.c cleanup
Previous:From: Matthew KirkwoodDate: 2001-02-27 17:17:24
Subject: Re: A patch for xlog.c

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group