Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0370951

Browse files
author
Neil Conway
committed
Tiny assorted fixes: correct a typo in a comment in vacuumlazy.c, remove
some unused #include directives from bufmgr.c, and clarify comments in bufmgr.h and buf.h
1 parent 1cb7f2e commit 0370951

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

src/backend/commands/vacuumlazy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*
3232
*
3333
* IDENTIFICATION
34-
* $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.38 2004/02/12 05:39:55 tgl Exp $
34+
* $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.39 2004/04/25 23:50:54 neilc Exp $
3535
*
3636
*-------------------------------------------------------------------------
3737
*/
@@ -813,7 +813,7 @@ count_nondeletable_pages(Relation onerel, LVRelStats *vacrelstats)
813813

814814
if (PageIsNew(page) || PageIsEmpty(page))
815815
{
816-
/* PageIsNew robably shouldn't happen... */
816+
/* PageIsNew probably shouldn't happen... */
817817
LockBuffer(buf, BUFFER_LOCK_UNLOCK);
818818
ReleaseBuffer(buf);
819819
continue;

src/backend/storage/buffer/bufmgr.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.163 2004/04/22 07:21:55 neilc Exp $
11+
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.164 2004/04/25 23:50:54 neilc Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -35,8 +35,6 @@
3535
*/
3636
#include "postgres.h"
3737

38-
#include <math.h>
39-
#include <signal.h>
4038
#include <sys/file.h>
4139
#include <unistd.h>
4240

src/include/storage/buf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/include/storage/buf.h,v 1.16 2003/11/29 22:41:13 pgsql Exp $
10+
* $PostgreSQL: pgsql/src/include/storage/buf.h,v 1.17 2004/04/25 23:50:58 neilc Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -32,7 +32,7 @@ typedef int Buffer;
3232

3333
/*
3434
* BufferIsLocal
35-
* True iff the buffer is local (not visible to other servers).
35+
* True iff the buffer is local (not visible to other backends).
3636
*/
3737
#define BufferIsLocal(buffer) ((buffer) < 0)
3838

src/include/storage/bufmgr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/include/storage/bufmgr.h,v 1.77 2004/04/22 07:21:55 neilc Exp $
10+
* $PostgreSQL: pgsql/src/include/storage/bufmgr.h,v 1.78 2004/04/25 23:50:58 neilc Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -42,7 +42,7 @@ extern DLLIMPORT int NLocBuffer;
4242
extern DLLIMPORT Block *LocalBufferBlockPointers;
4343
extern int32 *LocalRefCount;
4444

45-
/* special pageno for bget */
45+
/* special block number for ReadBuffer() */
4646
#define P_NEW InvalidBlockNumber /* grow the file to get a new page */
4747

4848
/*

0 commit comments

Comments
 (0)