summaryrefslogtreecommitdiffstats
path: root/src/H5Fquery.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2016-11-20 21:33:13 (GMT)
committerQuincey Koziol <koziol@lbl.gov>2016-11-20 21:33:13 (GMT)
commitcbd05409c5192901c11bf1a908941959eb960bb1 (patch)
tree242d3501c98bef92e6befd920e8a9efdf2f1715b /src/H5Fquery.c
parentf6ad126673553838df0dec514c5d2c1b4b70df1a (diff)
parent3b0c2b24da5689990c4bc0fcd3afecdf063086c8 (diff)
downloadhdf5-cbd05409c5192901c11bf1a908941959eb960bb1.zip
hdf5-cbd05409c5192901c11bf1a908941959eb960bb1.tar.gz
hdf5-cbd05409c5192901c11bf1a908941959eb960bb1.tar.bz2
Merge pull request #165 in HDFFV/hdf5 from ~KOZIOL/hdf5:develop_merge_revise_chunks_09 to develop
* commit '3b0c2b24da5689990c4bc0fcd3afecdf063086c8': Bring over support for retrying metadata cache entry loads, along with all the supporting metadata cache callback changes, etc.
Diffstat (limited to 'src/H5Fquery.c')
-rw-r--r--src/H5Fquery.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/H5Fquery.c b/src/H5Fquery.c
index 487eb85..7fcd0f1 100644
--- a/src/H5Fquery.c
+++ b/src/H5Fquery.c
@@ -322,6 +322,29 @@ H5F_get_nmounts(const H5F_t *f)
/*-------------------------------------------------------------------------
+ * Function: H5F_get_read_attempts
+ *
+ * Purpose: Retrieve the file's 'read_attempts' value
+ *
+ * Return: '# of read attempts' on success/abort on failure (shouldn't fail)
+ *
+ * Programmer: Vaili Choi; Sept 2013
+ *
+ *-------------------------------------------------------------------------
+ */
+unsigned
+H5F_get_read_attempts(const H5F_t *f)
+{
+ /* Use FUNC_ENTER_NOAPI_NOINIT_NOERR here to avoid performance issues */
+ FUNC_ENTER_NOAPI_NOINIT_NOERR
+
+ HDassert(f);
+
+ FUNC_LEAVE_NOAPI(f->shared->read_attempts)
+} /* end H5F_get_read_attempts() */
+
+
+/*-------------------------------------------------------------------------
* Function: H5F_get_fcpl
*
* Purpose: Retrieve the value of a file's FCPL.