mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
pgindent run for 9.4
This includes removing tabs after periods in C comments, which was applied to back branches, so this change should not effect backpatching.
This commit is contained in:
@@ -183,7 +183,7 @@ MemoryContextResetChildren(MemoryContext context)
|
||||
*
|
||||
* The type-specific delete routine removes all subsidiary storage
|
||||
* for the context, but we have to delete the context node itself,
|
||||
* as well as recurse to get the children. We must also delink the
|
||||
* as well as recurse to get the children. We must also delink the
|
||||
* node from its parent, if it has one.
|
||||
*/
|
||||
void
|
||||
@@ -487,22 +487,22 @@ MemoryContextContains(MemoryContext context, void *pointer)
|
||||
* we want to be sure that we don't leave the context tree invalid
|
||||
* in case of failure (such as insufficient memory to allocate the
|
||||
* context node itself). The procedure goes like this:
|
||||
* 1. Context-type-specific routine first calls MemoryContextCreate(),
|
||||
* 1. Context-type-specific routine first calls MemoryContextCreate(),
|
||||
* passing the appropriate tag/size/methods values (the methods
|
||||
* pointer will ordinarily point to statically allocated data).
|
||||
* The parent and name parameters usually come from the caller.
|
||||
* 2. MemoryContextCreate() attempts to allocate the context node,
|
||||
* 2. MemoryContextCreate() attempts to allocate the context node,
|
||||
* plus space for the name. If this fails we can ereport() with no
|
||||
* damage done.
|
||||
* 3. We fill in all of the type-independent MemoryContext fields.
|
||||
* 4. We call the type-specific init routine (using the methods pointer).
|
||||
* 3. We fill in all of the type-independent MemoryContext fields.
|
||||
* 4. We call the type-specific init routine (using the methods pointer).
|
||||
* The init routine is required to make the node minimally valid
|
||||
* with zero chance of failure --- it can't allocate more memory,
|
||||
* for example.
|
||||
* 5. Now we have a minimally valid node that can behave correctly
|
||||
* 5. Now we have a minimally valid node that can behave correctly
|
||||
* when told to reset or delete itself. We link the node to its
|
||||
* parent (if any), making the node part of the context tree.
|
||||
* 6. We return to the context-type-specific routine, which finishes
|
||||
* 6. We return to the context-type-specific routine, which finishes
|
||||
* up type-specific initialization. This routine can now do things
|
||||
* that might fail (like allocate more memory), so long as it's
|
||||
* sure the node is left in a state that delete will handle.
|
||||
@@ -514,7 +514,7 @@ MemoryContextContains(MemoryContext context, void *pointer)
|
||||
*
|
||||
* Normally, the context node and the name are allocated from
|
||||
* TopMemoryContext (NOT from the parent context, since the node must
|
||||
* survive resets of its parent context!). However, this routine is itself
|
||||
* survive resets of its parent context!). However, this routine is itself
|
||||
* used to create TopMemoryContext! If we see that TopMemoryContext is NULL,
|
||||
* we assume we are creating TopMemoryContext and use malloc() to allocate
|
||||
* the node.
|
||||
|
||||
Reference in New Issue
Block a user