From 7de10b48334d0113b1733f145c7d2bb4e9d4f9f1 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 14 Aug 2007 10:08:04 -0500 Subject: [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) --- src/H5FS.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12