Skip to content

Commit 268f9e3

Browse files
committed
Fix some typos in comments
Masahiko Sawada
1 parent 73f8d73 commit 268f9e3

File tree

1 file changed

+3
-3
lines changed
  • src/backend/utils/mmgr

1 file changed

+3
-3
lines changed

src/backend/utils/mmgr/dsa.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ dsa_create(int tranche_id)
435435
*/
436436
dsm_pin_segment(segment);
437437

438-
/* Create a new DSA area with the control objet in this segment. */
438+
/* Create a new DSA area with the control object in this segment. */
439439
area = create_internal(dsm_segment_address(segment),
440440
DSA_INITIAL_SEGMENT_SIZE,
441441
tranche_id,
@@ -1147,7 +1147,7 @@ create_internal(void *place, size_t size,
11471147
elog(ERROR, "dsa_area space must be at least %zu, but %zu provided",
11481148
dsa_minimum_size(), size);
11491149

1150-
/* Now figure out how much space is usuable */
1150+
/* Now figure out how much space is usable */
11511151
total_pages = size / FPM_PAGE_SIZE;
11521152
metadata_bytes =
11531153
MAXALIGN(sizeof(dsa_area_control)) +
@@ -1672,7 +1672,7 @@ get_segment_by_index(dsa_area *area, dsa_segment_index index)
16721672
*/
16731673
handle = area->control->segment_handles[index];
16741674

1675-
/* It's an erro to try to access an unused slot. */
1675+
/* It's an error to try to access an unused slot. */
16761676
if (handle == DSM_HANDLE_INVALID)
16771677
elog(ERROR,
16781678
"dsa_area could not attach to a segment that has been freed");

0 commit comments

Comments
 (0)