diff options
author | Simon Graetzer <simon.gratzer@mongodb.com> | 2021-06-09 09:39:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-10 11:20:20 +0000 |
commit | 1f64bbda633458a045efbb4fc32a2d52412a3942 (patch) | |
tree | 0076608b7d32027ff954bd03f72335629ec3e498 /src | |
parent | 0b8ac00f8d05b42aa70614114b3cafa29e02b4bd (diff) | |
download | mongo-1f64bbda633458a045efbb4fc32a2d52412a3942.tar.gz |
SERVER-57433 Report rename collection parameters in currentOp
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/s/create_collection_coordinator.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/s/rename_collection_coordinator.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/s/create_collection_coordinator.cpp b/src/mongo/db/s/create_collection_coordinator.cpp index 3dd8863055a..388366a8632 100644 --- a/src/mongo/db/s/create_collection_coordinator.cpp +++ b/src/mongo/db/s/create_collection_coordinator.cpp @@ -332,7 +332,7 @@ boost::optional<BSONObj> CreateCollectionCoordinator::reportForCurrentOp( if (const auto& optComment = getForwardableOpMetadata().getComment()) { cmdBob.append(optComment.get().firstElement()); } - cmdBob.append("request", _doc.getCreateCollectionRequest().toBSON()); + cmdBob.appendElements(_doc.getCreateCollectionRequest().toBSON()); BSONObjBuilder bob; bob.append("type", "op"); diff --git a/src/mongo/db/s/rename_collection_coordinator.cpp b/src/mongo/db/s/rename_collection_coordinator.cpp index 83add06607f..08168994c1e 100644 --- a/src/mongo/db/s/rename_collection_coordinator.cpp +++ b/src/mongo/db/s/rename_collection_coordinator.cpp @@ -106,12 +106,13 @@ boost::optional<BSONObj> RenameCollectionCoordinator::reportForCurrentOp( if (const auto& optComment = getForwardableOpMetadata().getComment()) { cmdBob.append(optComment.get().firstElement()); } + cmdBob.appendElements(_doc.getRenameCollectionRequest().toBSON()); + BSONObjBuilder bob; bob.append("type", "op"); bob.append("desc", "RenameCollectionCoordinator"); bob.append("op", "command"); bob.append("ns", nss().toString()); - bob.append("to", _doc.getTo().toString()); bob.append("command", cmdBob.obj()); bob.append("currentPhase", _doc.getPhase()); bob.append("active", true); |