mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
pgindent run for 8.3.
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
* pg_buffercache_pages.c
|
||||
* display some contents of the buffer cache
|
||||
*
|
||||
* $PostgreSQL: pgsql/contrib/pg_buffercache/pg_buffercache_pages.c,v 1.13 2007/07/16 21:20:36 tgl Exp $
|
||||
* $PostgreSQL: pgsql/contrib/pg_buffercache/pg_buffercache_pages.c,v 1.14 2007/11/15 21:14:30 momjian Exp $
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#include "postgres.h"
|
||||
@ -149,9 +149,9 @@ pg_buffercache_pages(PG_FUNCTION_ARGS)
|
||||
/*
|
||||
* And release locks. We do this in reverse order for two reasons:
|
||||
* (1) Anyone else who needs more than one of the locks will be trying
|
||||
* to lock them in increasing order; we don't want to release the other
|
||||
* process until it can get all the locks it needs.
|
||||
* (2) This avoids O(N^2) behavior inside LWLockRelease.
|
||||
* to lock them in increasing order; we don't want to release the
|
||||
* other process until it can get all the locks it needs. (2) This
|
||||
* avoids O(N^2) behavior inside LWLockRelease.
|
||||
*/
|
||||
for (i = NUM_BUFFER_PARTITIONS; --i >= 0;)
|
||||
LWLockRelease(FirstBufMappingLock + i);
|
||||
|
Reference in New Issue
Block a user