diff options
Diffstat (limited to 'src/mongo/db/repl/tenant_oplog_batcher_test.cpp')
-rw-r--r-- | src/mongo/db/repl/tenant_oplog_batcher_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/tenant_oplog_batcher_test.cpp b/src/mongo/db/repl/tenant_oplog_batcher_test.cpp index 5b82a4c4afe..e7e1e4791a8 100644 --- a/src/mongo/db/repl/tenant_oplog_batcher_test.cpp +++ b/src/mongo/db/repl/tenant_oplog_batcher_test.cpp @@ -299,7 +299,7 @@ TEST_F(TenantOplogBatcherTest, GetNextApplierBatchChecksBatchLimitsForSizeOfOper // Set batch limits so that only the first two operations can fit into the first batch. auto limits = bigBatchLimits; - limits.bytes = std::size_t(srcOps[0].objsize() + srcOps[1].objsize()); + limits.bytes = std::size_t(srcOps[0].objsize()) + std::size_t(srcOps[1].objsize()); auto batcher = std::make_shared<TenantOplogBatcher>( _migrationUuid, &_oplogBuffer, _executor, Timestamp(), OpTime()); ASSERT_OK(batcher->startup()); |