Skip to content

Commit

Permalink
Fix FMRC proto cache for large variables
Browse files Browse the repository at this point in the history
  • Loading branch information
lesserwhirls committed Aug 2, 2019
1 parent 0c94044 commit 5a7f5a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cdm/src/main/java/ucar/nc2/ft/fmrc/FmrcDataset.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,9 @@ private NetcdfDataset buildProto(FmrcInv fmrcInv, FeatureCollectionConfig.ProtoC
Variable orgV = (Variable) v.getSPobject();
if (orgV.getSize() > 10 * 1000 * 1000) {
logger.info("FMRCDataset build Proto cache >10M var= "+orgV.getNameAndDimensions());
} else {
v.setCachedData(orgV.read()); // read from original - store in proto
}
v.setCachedData(orgV.read()); // read from original - store in proto
}

v.setSPobject(null); // clear the reference to orgV for all of proto
}

Expand Down

0 comments on commit 5a7f5a7

Please sign in to comment.