OPENDAP / bes

The BES framework, which forms the basis for the Hyrax server
GNU Lesser General Public License v3.0
13 stars 19 forks source link

Fixed what I think is an error in FileCache. #922

Closed jgallagher59701 closed 6 months ago

jgallagher59701 commented 6 months ago

The private method always zeroed the cache size information in the cache info file (which doubles as a cache lock file). I modified the code to look at the size of the cache info file and if it's zero length, initialize it to zero. Otherwise, do not set it to zero.

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

jgallagher59701 commented 6 months ago

@ndp-opendap @dh-opendap Please review