Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
19982610
Commit
19982610
authored
May 05, 2015
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid using a C++ keyword as a structure member name.
Per request from Peter Eisentraut.
parent
929ca965
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
src/backend/access/transam/parallel.c
src/backend/access/transam/parallel.c
+6
-5
src/include/access/parallel.h
src/include/access/parallel.h
+1
-1
No files found.
src/backend/access/transam/parallel.c
View file @
19982610
...
...
@@ -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. */
...
...
src/include/access/parallel.h
View file @
19982610
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment