Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0370951

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 inbufmgr.h and buf.h
1 parent1cb7f2e commit0370951

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-
/* PageIsNewrobably shouldn't happen... */
816+
/* PageIsNewprobably 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 otherservers).
35+
*True iff the buffer is local (not visible to otherbackends).
3636
*/
3737
#defineBufferIsLocal(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
externDLLIMPORTBlock*LocalBufferBlockPointers;
4343
externint32*LocalRefCount;
4444

45-
/* specialpagenoforbget */
45+
/* specialblock numberforReadBuffer() */
4646
#defineP_NEWInvalidBlockNumber/* grow the file to get a new page */
4747

4848
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp