summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2004-04-25 23:50:58 +0000
committerNeil Conway <neilc@samurai.com>2004-04-25 23:50:58 +0000
commit03709513477a4991eb78264c4cddbe8c9804e6cb (patch)
tree32beff6aa5c300512f24eb52abfeac3d1bd7a001 /src
parent1cb7f2ebf32fae1626af258d8dc99815bd1b2799 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/vacuumlazy.c4
-rw-r--r--src/backend/storage/buffer/bufmgr.c4
-rw-r--r--src/include/storage/buf.h4
-rw-r--r--src/include/storage/bufmgr.h4
4 files changed, 7 insertions, 9 deletions
diff --git a/src/backend/commands/vacuumlazy.c b/src/backend/commands/vacuumlazy.c
index 1ce33e10458..46920c0009b 100644
--- a/src/backend/commands/vacuumlazy.c
+++ b/src/backend/commands/vacuumlazy.c
@@ -31,7 +31,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.38 2004/02/12 05:39:55 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.39 2004/04/25 23:50:54 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -813,7 +813,7 @@ count_nondeletable_pages(Relation onerel, LVRelStats *vacrelstats)
if (PageIsNew(page) || PageIsEmpty(page))
{
- /* PageIsNew robably shouldn't happen... */
+ /* PageIsNew probably shouldn't happen... */
LockBuffer(buf, BUFFER_LOCK_UNLOCK);
ReleaseBuffer(buf);
continue;
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c
index 84da0ebfbe7..64f5e5ad40a 100644
--- a/src/backend/storage/buffer/bufmgr.c
+++ b/src/backend/storage/buffer/bufmgr.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.163 2004/04/22 07:21:55 neilc Exp $
+ * $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.164 2004/04/25 23:50:54 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -35,8 +35,6 @@
*/
#include "postgres.h"
-#include <math.h>
-#include <signal.h>
#include <sys/file.h>
#include <unistd.h>
diff --git a/src/include/storage/buf.h b/src/include/storage/buf.h
index 4fc9985b2b1..9e095e97e55 100644
--- a/src/include/storage/buf.h
+++ b/src/include/storage/buf.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/buf.h,v 1.16 2003/11/29 22:41:13 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/storage/buf.h,v 1.17 2004/04/25 23:50:58 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -32,7 +32,7 @@ typedef int Buffer;
/*
* BufferIsLocal
- * True iff the buffer is local (not visible to other servers).
+ * True iff the buffer is local (not visible to other backends).
*/
#define BufferIsLocal(buffer) ((buffer) < 0)
diff --git a/src/include/storage/bufmgr.h b/src/include/storage/bufmgr.h
index 43a90186469..1cd16a51534 100644
--- a/src/include/storage/bufmgr.h
+++ b/src/include/storage/bufmgr.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/bufmgr.h,v 1.77 2004/04/22 07:21:55 neilc Exp $
+ * $PostgreSQL: pgsql/src/include/storage/bufmgr.h,v 1.78 2004/04/25 23:50:58 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -42,7 +42,7 @@ extern DLLIMPORT int NLocBuffer;
extern DLLIMPORT Block *LocalBufferBlockPointers;
extern int32 *LocalRefCount;
-/* special pageno for bget */
+/* special block number for ReadBuffer() */
#define P_NEW InvalidBlockNumber /* grow the file to get a new page */
/*