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