mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
This commit is contained in:
20
src/backend/utils/cache/inval.c
vendored
20
src/backend/utils/cache/inval.c
vendored
@ -80,7 +80,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/cache/inval.c,v 1.88 2009/01/01 17:23:50 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/cache/inval.c,v 1.89 2009/06/11 14:49:05 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -403,7 +403,7 @@ ProcessInvalidationMessages(InvalidationListHeader *hdr,
|
||||
*/
|
||||
static void
|
||||
ProcessInvalidationMessagesMulti(InvalidationListHeader *hdr,
|
||||
void (*func) (const SharedInvalidationMessage *msgs, int n))
|
||||
void (*func) (const SharedInvalidationMessage *msgs, int n))
|
||||
{
|
||||
ProcessMessageListMulti(hdr->cclist, func(msgs, n));
|
||||
ProcessMessageListMulti(hdr->rclist, func(msgs, n));
|
||||
@ -442,9 +442,9 @@ RegisterRelcacheInvalidation(Oid dbId, Oid relId)
|
||||
|
||||
/*
|
||||
* Most of the time, relcache invalidation is associated with system
|
||||
* catalog updates, but there are a few cases where it isn't. Quick
|
||||
* hack to ensure that the next CommandCounterIncrement() will think
|
||||
* that we need to do CommandEndInvalidationMessages().
|
||||
* catalog updates, but there are a few cases where it isn't. Quick hack
|
||||
* to ensure that the next CommandCounterIncrement() will think that we
|
||||
* need to do CommandEndInvalidationMessages().
|
||||
*/
|
||||
(void) GetCurrentCommandId(true);
|
||||
|
||||
@ -1015,7 +1015,7 @@ CommandEndInvalidationMessages(void)
|
||||
* Prepare for invalidation messages for nontransactional updates.
|
||||
*
|
||||
* A nontransactional invalidation is one that must be sent whether or not
|
||||
* the current transaction eventually commits. We arrange for all invals
|
||||
* the current transaction eventually commits. We arrange for all invals
|
||||
* queued between this call and EndNonTransactionalInvalidation() to be sent
|
||||
* immediately when the latter is called.
|
||||
*
|
||||
@ -1069,10 +1069,10 @@ EndNonTransactionalInvalidation(void)
|
||||
Assert(transInvalInfo->PriorCmdInvalidMsgs.rclist == NULL);
|
||||
|
||||
/*
|
||||
* At present, this function is only used for CTID-changing updates;
|
||||
* since the relcache init file doesn't store any tuple CTIDs, we
|
||||
* don't have to invalidate it. That might not be true forever
|
||||
* though, in which case we'd need code similar to AtEOXact_Inval.
|
||||
* At present, this function is only used for CTID-changing updates; since
|
||||
* the relcache init file doesn't store any tuple CTIDs, we don't have to
|
||||
* invalidate it. That might not be true forever though, in which case
|
||||
* we'd need code similar to AtEOXact_Inval.
|
||||
*/
|
||||
|
||||
/* Send out the invals */
|
||||
|
Reference in New Issue
Block a user