summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/H5D.c b/src/H5D.c
index a49727a..45ed334 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -969,6 +969,14 @@ H5D_open(H5G_t *loc, const char *name)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, NULL,
"unable to load type or space info from dataset header");
}
+
+ /* Get the optional compression message */
+ if (NULL==H5O_read (&(dataset->ent), H5O_COMPRESS, 0,
+ &(dataset->create_parms->compress))) {
+ H5E_clear ();
+ HDmemset (&(dataset->create_parms->compress), 0,
+ sizeof(dataset->create_parms->compress));
+ }
/*
* Get the raw data layout info. It's actually stored in two locations: