diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-19 22:46:42 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-02-19 22:46:42 (GMT) |
commit | 48ca10f80ee7dab2277feb83472466b79110cea6 (patch) | |
tree | e5ef369a9259ab6b3f6655dc85e3332277d127d8 /src/H5PB.c | |
parent | ac1912b361d92ada130d6e597ff4075070c252ae (diff) | |
download | hdf5-48ca10f80ee7dab2277feb83472466b79110cea6.zip hdf5-48ca10f80ee7dab2277feb83472466b79110cea6.tar.gz hdf5-48ca10f80ee7dab2277feb83472466b79110cea6.tar.bz2 |
Improve some comments: fix typos, shorten.
Diffstat (limited to 'src/H5PB.c')
-rw-r--r-- | src/H5PB.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1715,9 +1715,7 @@ H5PB_vfd_swmr__update_index(H5F_t *f, HDassert(entry->magic == H5PB__H5PB_ENTRY_T_MAGIC); - /* do a binary search on the metadata file index to see if - * it already contains an entry for *entry. - */ + /* see if the shadow index already contains an entry for *entry. */ ie_ptr = vfd_swmr_pageno_to_mdf_idx_entry(idx, shared->mdf_idx_entries_used, target_page); @@ -3112,7 +3110,7 @@ H5PB__read_meta(H5F_shared_t *shared, H5FD_mem_t type, haddr_t addr, size_t size H5PB_entry_t *entry_ptr; /* Pointer to page buffer entry */ H5FD_t *file; /* File driver pointer */ uint64_t page; /* page offset of addr */ - haddr_t page_addr; /* page containg addr */ + haddr_t page_addr; /* page containing addr */ static haddr_t prev_addr = HADDR_UNDEF; /* addr of last call */ size_t offset; /* offset of read in page */ size_t clipped_size; /* possibley clipped size */ @@ -3231,8 +3229,8 @@ H5PB__read_meta(H5F_shared_t *shared, H5FD_mem_t type, haddr_t addr, size_t size * page address, test to see if the last read was for the * same address. * - * If was, evict the page, and satisfy the read from file. - * Flag an error if the page was dirty. + * If it was, evict the page, and satisfy the read from + * file. Flag an error if the page was dirty. * * If the last read was for a different page, clip the read * to one page, and satisfy the read from the existing |