summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-08-14 15:08:04 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-08-14 15:08:04 (GMT)
commit7de10b48334d0113b1733f145c7d2bb4e9d4f9f1 (patch)
treeb3311360139efb32681f43906f5c3a90d9935ea6 /src
parent4dc989f28232245dbc2f52c1330346868099234e (diff)
downloadhdf5-7de10b48334d0113b1733f145c7d2bb4e9d4f9f1.zip
hdf5-7de10b48334d0113b1733f145c7d2bb4e9d4f9f1.tar.gz
hdf5-7de10b48334d0113b1733f145c7d2bb4e9d4f9f1.tar.bz2
[svn-r14084] Description:
Change metadata cache protect access from "write" to "read" for the free space header, which follows the same pattern as the fractal heap's use of the metadata cache. Tested on: FreeBSD/32 6.2 (duty) Mac OS X/32 10.4.10 (amazon)
Diffstat (limited to 'src')
-rw-r--r--src/H5FS.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FS.c b/src/H5FS.c
index 1b8ef90..73ef3c2 100644
--- a/src/H5FS.c
+++ b/src/H5FS.c
@@ -181,7 +181,7 @@ HDfprintf(stderr, "%s: Opening free space manager, nclasses = %Zu\n", FUNC, ncla
fs_prot.cls_init_udata = cls_init_udata;
/* Protect the free space header */
- if(NULL == (fspace = H5AC_protect(f, dxpl_id, H5AC_FSPACE_HDR, fs_addr, &fs_prot, NULL, H5AC_WRITE)))
+ if(NULL == (fspace = H5AC_protect(f, dxpl_id, H5AC_FSPACE_HDR, fs_addr, &fs_prot, NULL, H5AC_READ)))
HGOTO_ERROR(H5E_FSPACE, H5E_CANTPROTECT, NULL, "unable to load free space header")
#ifdef QAK
HDfprintf(stderr, "%s: fspace->sect_addr = %a\n", FUNC, fspace->sect_addr);