MCPcopy Index your code
hub / github.com/scality/cloudserver / remoteOverlayIsNewer

Function remoteOverlayIsNewer

lib/management/configuration.js:21–25  ·  view source on GitHub ↗
(cachedOverlay, remoteOverlay)

Source from the content-addressed store, hash-verified

19}
20
21function remoteOverlayIsNewer(cachedOverlay, remoteOverlay) {
22 return (overlayHasVersion(remoteOverlay) &&
23 (!overlayHasVersion(cachedOverlay) ||
24 remoteOverlay.version > cachedOverlay.version));
25}
26
27/**
28 * Updates the live {Config} object with the new overlay configuration.

Callers 2

saveConfigurationVersionFunction · 0.85
configuration.jsFile · 0.85

Calls 1

overlayHasVersionFunction · 0.85

Tested by

no test coverage detected