Compare commits

...

1 Commits

Author SHA1 Message Date
bbuchanan9 8e7bcf7524 squash: do not use object counter 2019-04-16 13:00:24 -07:00
1 changed files with 4 additions and 4 deletions

View File

@ -446,7 +446,7 @@ function reportHandler(clientIP, req, res, log) {
getMDDiskUsage: cb => metadata.getDiskUsage(log, cb), getMDDiskUsage: cb => metadata.getDiskUsage(log, cb),
getDataDiskUsage: cb => data.getDiskUsage(log, cb), getDataDiskUsage: cb => data.getDiskUsage(log, cb),
getVersion: cb => getGitVersion(cb), getVersion: cb => getGitVersion(cb),
getObjectCount: cb => metadata.countItems(log, cb), // getObjectCount: cb => metadata.countItems(log, cb),
getCRRMetrics: cb => getCRRMetrics(log, cb), getCRRMetrics: cb => getCRRMetrics(log, cb),
getReplicationStates: cb => getReplicationStates(log, cb), getReplicationStates: cb => getReplicationStates(log, cb),
getIngestionInfo: cb => getIngestionInfo(log, cb), getIngestionInfo: cb => getIngestionInfo(log, cb),
@ -457,10 +457,10 @@ function reportHandler(clientIP, req, res, log) {
res.write(JSON.stringify(err)); res.write(JSON.stringify(err));
log.errorEnd('could not gather report', { error: err }); log.errorEnd('could not gather report', { error: err });
} else { } else {
const getObjectCount = results.getObjectCount; const getObjectCount = 0;
const crrStatsObj = Object.assign({}, results.getCRRMetrics); const crrStatsObj = Object.assign({}, results.getCRRMetrics);
crrStatsObj.stalled = { count: getObjectCount.stalled || 0 }; crrStatsObj.stalled = { count: getObjectCount || 0 };
delete getObjectCount.stalled; // delete getObjectCount.stalled;
const response = { const response = {
utcTime: new Date(), utcTime: new Date(),
uuid: results.getUUID, uuid: results.getUUID,