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
268f9e3d
Commit
268f9e3d
authored
Jan 11, 2017
by
Magnus Hagander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some typos in comments
Masahiko Sawada
parent
73f8d733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/backend/utils/mmgr/dsa.c
src/backend/utils/mmgr/dsa.c
+3
-3
No files found.
src/backend/utils/mmgr/dsa.c
View file @
268f9e3d
...
...
@@ -435,7 +435,7 @@ dsa_create(int tranche_id)
*/
dsm_pin_segment
(
segment
);
/* Create a new DSA area with the control objet in this segment. */
/* Create a new DSA area with the control obje
c
t in this segment. */
area
=
create_internal
(
dsm_segment_address
(
segment
),
DSA_INITIAL_SEGMENT_SIZE
,
tranche_id
,
...
...
@@ -1147,7 +1147,7 @@ create_internal(void *place, size_t size,
elog
(
ERROR
,
"dsa_area space must be at least %zu, but %zu provided"
,
dsa_minimum_size
(),
size
);
/* Now figure out how much space is us
u
able */
/* Now figure out how much space is usable */
total_pages
=
size
/
FPM_PAGE_SIZE
;
metadata_bytes
=
MAXALIGN
(
sizeof
(
dsa_area_control
))
+
...
...
@@ -1672,7 +1672,7 @@ get_segment_by_index(dsa_area *area, dsa_segment_index index)
*/
handle
=
area
->
control
->
segment_handles
[
index
];
/* It's an erro to try to access an unused slot. */
/* It's an erro
r
to try to access an unused slot. */
if
(
handle
==
DSM_HANDLE_INVALID
)
elog
(
ERROR
,
"dsa_area could not attach to a segment that has been freed"
);
...
...
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