MCPcopy Create free account
hub / github.com/apache/trafficserver / RecRawStatUpdateSum

Function RecRawStatUpdateSum

src/records/RecRawStats.cc:405–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405int
406RecRawStatUpdateSum(RecRawStatBlock *rsb, int id)
407{
408 RecRawStat *raw = rsb->global[id];
409 if (nullptr != raw) {
410 RecRecord *r = reinterpret_cast<RecRecord *>(reinterpret_cast<char *>(raw) - offsetof(struct RecRecord, stat_meta));
411
412 RecDataSetFromInt64(r->data_type, &r->data, rsb->global[id]->sum);
413 r->sync_required = REC_SYNC_REQUIRED;
414 return REC_ERR_OKAY;
415 }
416 return REC_ERR_FAIL;
417}

Callers 1

EventMetricStatSyncFunction · 0.85

Calls 1

RecDataSetFromInt64Function · 0.85

Tested by

no test coverage detected