diff options
author | Magnus Hagander <magnus@hagander.net> | 2017-01-11 10:03:03 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2017-01-11 10:03:03 +0100 |
commit | 268f9e3d9292af1d6ca9aa66b42daac2ef1a0987 (patch) | |
tree | b9f141c09df6f8a513dbb5364e94bf649c215320 /src | |
parent | 73f8d7331343cefaaa97a0039421158fc8462c81 (diff) | |
download | postgresql-268f9e3d9292af1d6ca9aa66b42daac2ef1a0987.tar.gz postgresql-268f9e3d9292af1d6ca9aa66b42daac2ef1a0987.zip |
Fix some typos in comments
Masahiko Sawada
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/mmgr/dsa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/mmgr/dsa.c b/src/backend/utils/mmgr/dsa.c index 2503aa5e988..7dc43f1ea79 100644 --- a/src/backend/utils/mmgr/dsa.c +++ b/src/backend/utils/mmgr/dsa.c @@ -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 object 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 usuable */ + /* 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 error 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"); |