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

Function setStartTurnAroundTime

lib/api/api.js:319–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317 }
318 if (apiMethod === 'objectPut' || apiMethod === 'objectPutPart') {
319 const setStartTurnAroundTime = () => {
320 if (request.serverAccessLog) {
321 request.serverAccessLog.startTurnAroundTime = process.hrtime.bigint();
322 }
323 };
324 // For 0-byte uploads, downstream handlers do not consume
325 // the request stream, so 'end' never fires. Set
326 // startTurnAroundTime synchronously in that case.

Callers 1

callApiHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected