aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2015-05-05 22:41:03 -0400
committerRobert Haas <rhaas@postgresql.org>2015-05-05 22:41:03 -0400
commit1998261034ec7a948bb9b25b7cb88d014d371da1 (patch)
treeee81f62d42154f385acd897d095322c49957d9da /src
parent929ca96584bef1cc7d09a8e57d26d8c3f25a92a4 (diff)
downloadpostgresql-1998261034ec7a948bb9b25b7cb88d014d371da1.tar.gz
postgresql-1998261034ec7a948bb9b25b7cb88d014d371da1.zip
Avoid using a C++ keyword as a structure member name.
Per request from Peter Eisentraut.
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/parallel.c11
-rw-r--r--src/include/access/parallel.h2
2 files changed, 7 insertions, 6 deletions
diff --git a/src/backend/access/transam/parallel.c b/src/backend/access/transam/parallel.c
index 8ed7314b58c..8d6a3606794 100644
--- a/src/backend/access/transam/parallel.c
+++ b/src/backend/access/transam/parallel.c
@@ -266,8 +266,9 @@ InitializeParallelDSM(ParallelContext *pcxt)
else
{
pcxt->nworkers = 0;
- pcxt->private = MemoryContextAlloc(TopMemoryContext, segsize);
- pcxt->toc = shm_toc_create(PARALLEL_MAGIC, pcxt->private, segsize);
+ pcxt->private_memory = MemoryContextAlloc(TopMemoryContext, segsize);
+ pcxt->toc = shm_toc_create(PARALLEL_MAGIC, pcxt->private_memory,
+ segsize);
}
/* Initialize fixed-size state in shared memory. */
@@ -538,10 +539,10 @@ DestroyParallelContext(ParallelContext *pcxt)
* If this parallel context is actually in backend-private memory rather
* than shared memory, free that memory instead.
*/
- if (pcxt->private != NULL)
+ if (pcxt->private_memory != NULL)
{
- pfree(pcxt->private);
- pcxt->private = NULL;
+ pfree(pcxt->private_memory);
+ pcxt->private_memory = NULL;
}
/* Wait until the workers actually die. */
diff --git a/src/include/access/parallel.h b/src/include/access/parallel.h
index 8274f841b68..5f23f18f43b 100644
--- a/src/include/access/parallel.h
+++ b/src/include/access/parallel.h
@@ -41,7 +41,7 @@ typedef struct ParallelContext
ErrorContextCallback *error_context_stack;
shm_toc_estimator estimator;
dsm_segment *seg;
- void *private;
+ void *private_memory;
shm_toc *toc;
ParallelWorkerInfo *worker;
} ParallelContext;