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

Method onNewOverlay

managementAgent.js:148–161  ·  view source on GitHub ↗
(remoteOverlay)

Source from the content-addressed store, hash-verified

146 }
147
148 onNewOverlay(remoteOverlay) {
149 const remoteOverlayObj = JSON.parse(remoteOverlay);
150 saveConfigurationVersion(
151 this.loadedOverlay, remoteOverlayObj, logger, err => {
152 if (err) {
153 logger.error('failed to save remote overlay', { err });
154 return;
155 }
156 this.loadedOverlay = remoteOverlayObj;
157 this.wss.clients.forEach(
158 this._sendNewOverlayToClient.bind(this)
159 );
160 });
161 }
162
163 checkBrokenConnections() {
164 this.wss.clients.forEach(client => {

Callers

nothing calls this directly

Calls 2

saveConfigurationVersionFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected