Set variable no_fill to match database default (nc4)

In nc4 mode, the variables were ignoring the default "database" fill/no_fill mode set via a call to nc_set_fill().  This sets the no_fill mode on the variable to match the default database setting at the time the variable is defined.
This commit is contained in:
Greg Sjaardema 2016-12-02 08:17:47 -07:00 committed by GitHub
parent 1e39435adb
commit 8401e2087e

View File

@ -456,6 +456,7 @@ nc_def_var_nc4(int ncid, const char *name, nc_type xtype,
var->varid = grp->nvars++; var->varid = grp->nvars++;
var->ndims = ndims; var->ndims = ndims;
var->is_new_var = NC_TRUE; var->is_new_var = NC_TRUE;
var->no_fill = h5->fill_mode;
nc4_vararray_add(grp, var); nc4_vararray_add(grp, var);