summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/resharding/resharding_donor_oplog_iterator_test.cpp
diff options
context:
space:
mode:
authorLaMont Nelson <lamont.nelson@mongodb.com>2020-12-09 04:35:38 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-12-23 03:49:04 +0000
commite3372897dcea110233204133a8e62141ba2db70d (patch)
tree07a5ec45bcee28d71da45e326d0beaa0fca3dcc6 /src/mongo/db/s/resharding/resharding_donor_oplog_iterator_test.cpp
parent288354349eb98af037fe157220d3e161a58703b7 (diff)
downloadmongo-e3372897dcea110233204133a8e62141ba2db70d.tar.gz
SERVER-52795 Resharding donors write final oplog entry upon entering the preparing-to-mirror state.
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_donor_oplog_iterator_test.cpp')
-rw-r--r--src/mongo/db/s/resharding/resharding_donor_oplog_iterator_test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/s/resharding/resharding_donor_oplog_iterator_test.cpp b/src/mongo/db/s/resharding/resharding_donor_oplog_iterator_test.cpp
index b999afdf103..e29851f0d29 100644
--- a/src/mongo/db/s/resharding/resharding_donor_oplog_iterator_test.cpp
+++ b/src/mongo/db/s/resharding/resharding_donor_oplog_iterator_test.cpp
@@ -83,9 +83,8 @@ public:
ReshardingDonorOplogId oplogId(id, id);
const BSONObj oField(BSON("msg"
<< "Created temporary resharding collection"));
- const BSONObj o2Field(BSON("type"
- << "reshardFinalOp"
- << "reshardingUUID" << UUID::gen()));
+ const BSONObj o2Field(
+ BSON("type" << kReshardFinalOpLogType << "reshardingUUID" << UUID::gen()));
return makeOplog(_crudNss, _uuid, repl::OpTypeEnum::kNoop, oField, o2Field, oplogId);
}