summaryrefslogtreecommitdiff
path: root/jstests/sharding/resharding_histogram_metrics.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/resharding_histogram_metrics.js')
-rw-r--r--jstests/sharding/resharding_histogram_metrics.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/sharding/resharding_histogram_metrics.js b/jstests/sharding/resharding_histogram_metrics.js
index c474db95d96..2c06b081605 100644
--- a/jstests/sharding/resharding_histogram_metrics.js
+++ b/jstests/sharding/resharding_histogram_metrics.js
@@ -122,12 +122,12 @@ reshardingTest.withReshardingInBackground(
// We expect 1 batch insert per document on each shard, plus 1 empty batch
// to discover no documents are left.
const expectedBatchInserts = reshardingMetrics[kDocumentsCopied] + 1;
- const receivedBatchInserts = collClonerFillBatchForInsertHist["ops"];
+ const receivedBatchInserts = collClonerFillBatchForInsertHist["totalCount"];
assert(expectedBatchInserts == receivedBatchInserts,
`expected ${expectedBatchInserts} batch inserts,
received ${receivedBatchInserts}`);
- firstReshardBatchApplies += oplogApplierApplyBatchHist["ops"];
+ firstReshardBatchApplies += oplogApplierApplyBatchHist["totalCount"];
});
assert(firstReshardBatchApplies > 0,
@@ -174,8 +174,8 @@ recipientShardNames.forEach(function(shardName) {
const collClonerFillBatchForInsertHist =
reshardingMetrics[kCollClonerFillBatchForInsertLatencyMillis];
- cumulativeBatchApplies += oplogApplierApplyBatchHist["ops"];
- cumulativeBatchInserts += collClonerFillBatchForInsertHist["ops"];
+ cumulativeBatchApplies += oplogApplierApplyBatchHist["totalCount"];
+ cumulativeBatchInserts += collClonerFillBatchForInsertHist["totalCount"];
totalDocumentsCopied += reshardingMetrics[kDocumentsCopied];
});