diff options
Diffstat (limited to 'src/mongo/db/serverless/shard_split_commands.cpp')
-rw-r--r-- | src/mongo/db/serverless/shard_split_commands.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mongo/db/serverless/shard_split_commands.cpp b/src/mongo/db/serverless/shard_split_commands.cpp index 5ce6c9c0307..b7757134c4b 100644 --- a/src/mongo/db/serverless/shard_split_commands.cpp +++ b/src/mongo/db/serverless/shard_split_commands.cpp @@ -84,13 +84,9 @@ public: (state.abortReason ? state.abortReason->toString() : ""), state.state != ShardSplitDonorStateEnum::kAborted); - Response response(state.state); - if (state.abortReason) { - BSONObjBuilder bob; - - state.abortReason->serializeErrorToBSON(&bob); - response.setAbortReason(bob.obj()); - } + Response response; + invariant(state.blockOpTime.has_value()); + response.setBlockOpTime(*state.blockOpTime); return response; } |