mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
This commit is contained in:
@@ -8,15 +8,15 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/storage/freespace/indexfsm.c,v 1.4 2009/01/01 17:23:47 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/storage/freespace/indexfsm.c,v 1.5 2009/06/11 14:49:01 momjian Exp $
|
||||
*
|
||||
*
|
||||
* NOTES:
|
||||
*
|
||||
* This is similar to the FSM used for heap, in freespace.c, but instead
|
||||
* of tracking the amount of free space on pages, we only track whether
|
||||
* pages are completely free or in-use. We use the same FSM implementation
|
||||
* as for heaps, using BLCKSZ - 1 to denote used pages, and 0 for unused.
|
||||
* This is similar to the FSM used for heap, in freespace.c, but instead
|
||||
* of tracking the amount of free space on pages, we only track whether
|
||||
* pages are completely free or in-use. We use the same FSM implementation
|
||||
* as for heaps, using BLCKSZ - 1 to denote used pages, and 0 for unused.
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -38,7 +38,7 @@
|
||||
BlockNumber
|
||||
GetFreeIndexPage(Relation rel)
|
||||
{
|
||||
BlockNumber blkno = GetPageWithFreeSpace(rel, BLCKSZ/2);
|
||||
BlockNumber blkno = GetPageWithFreeSpace(rel, BLCKSZ / 2);
|
||||
|
||||
if (blkno != InvalidBlockNumber)
|
||||
RecordUsedIndexPage(rel, blkno);
|
||||
|
Reference in New Issue
Block a user