diff options
author | David Young <dyoung@hdfgroup.org> | 2019-10-02 20:48:50 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2019-10-02 20:48:50 (GMT) |
commit | b1b98cfafe5acb229037e391c1e33812aa53b3bb (patch) | |
tree | ee0faf492285b76ffcfdab58001ac993c71588df /src/H5retry_private.h | |
parent | 5025be74eaf8b85d51ce74b6076c8c625dc9b9c2 (diff) | |
download | hdf5-b1b98cfafe5acb229037e391c1e33812aa53b3bb.zip hdf5-b1b98cfafe5acb229037e391c1e33812aa53b3bb.tar.gz hdf5-b1b98cfafe5acb229037e391c1e33812aa53b3bb.tar.bz2 |
F ix off-by-one bug affecting metadata-read retries: retries == tries - 1.
Diffstat (limited to 'src/H5retry_private.h')
-rw-r--r-- | src/H5retry_private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5retry_private.h b/src/H5retry_private.h index 03568ef..83ed310 100644 --- a/src/H5retry_private.h +++ b/src/H5retry_private.h @@ -88,11 +88,11 @@ h5_retry_next(struct h5_retry_t *r) return true; } -/* Return the number of retries performed since `h5_retry_init()` +/* Return the number of tries performed since `h5_retry_init()` * was called on `r`. */ static inline unsigned -h5_retry_retries(struct h5_retry_t *r) +h5_retry_tries(struct h5_retry_t *r) { return r->maxtries - r->tries; } |