Commit 19982610 authored by Robert Haas's avatar Robert Haas

Avoid using a C++ keyword as a structure member name.

Per request from Peter Eisentraut.
parent 929ca965
...@@ -266,8 +266,9 @@ InitializeParallelDSM(ParallelContext *pcxt) ...@@ -266,8 +266,9 @@ InitializeParallelDSM(ParallelContext *pcxt)
else else
{ {
pcxt->nworkers = 0; pcxt->nworkers = 0;
pcxt->private = MemoryContextAlloc(TopMemoryContext, segsize); pcxt->private_memory = MemoryContextAlloc(TopMemoryContext, segsize);
pcxt->toc = shm_toc_create(PARALLEL_MAGIC, pcxt->private, segsize); pcxt->toc = shm_toc_create(PARALLEL_MAGIC, pcxt->private_memory,
segsize);
} }
/* Initialize fixed-size state in shared memory. */ /* Initialize fixed-size state in shared memory. */
...@@ -538,10 +539,10 @@ DestroyParallelContext(ParallelContext *pcxt) ...@@ -538,10 +539,10 @@ DestroyParallelContext(ParallelContext *pcxt)
* If this parallel context is actually in backend-private memory rather * If this parallel context is actually in backend-private memory rather
* than shared memory, free that memory instead. * than shared memory, free that memory instead.
*/ */
if (pcxt->private != NULL) if (pcxt->private_memory != NULL)
{ {
pfree(pcxt->private); pfree(pcxt->private_memory);
pcxt->private = NULL; pcxt->private_memory = NULL;
} }
/* Wait until the workers actually die. */ /* Wait until the workers actually die. */
......
...@@ -41,7 +41,7 @@ typedef struct ParallelContext ...@@ -41,7 +41,7 @@ typedef struct ParallelContext
ErrorContextCallback *error_context_stack; ErrorContextCallback *error_context_stack;
shm_toc_estimator estimator; shm_toc_estimator estimator;
dsm_segment *seg; dsm_segment *seg;
void *private; void *private_memory;
shm_toc *toc; shm_toc *toc;
ParallelWorkerInfo *worker; ParallelWorkerInfo *worker;
} ParallelContext; } ParallelContext;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment