summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/rename_collection_participant_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/rename_collection_participant_service.cpp')
-rw-r--r--src/mongo/db/s/rename_collection_participant_service.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/rename_collection_participant_service.cpp b/src/mongo/db/s/rename_collection_participant_service.cpp
index 6fc4a2bed2f..ee8aebded3e 100644
--- a/src/mongo/db/s/rename_collection_participant_service.cpp
+++ b/src/mongo/db/s/rename_collection_participant_service.cpp
@@ -169,7 +169,7 @@ boost::optional<BSONObj> RenameParticipantInstance::reportForCurrentOp(
BSONObjBuilder cmdBob;
if (const auto& optComment = _doc.getForwardableOpMetadata().getComment()) {
- cmdBob.append(optComment.get().firstElement());
+ cmdBob.append(optComment.value().firstElement());
}
BSONObjBuilder bob;
bob.append("type", "op");