summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands.cpp')
-rw-r--r--src/mongo/db/commands.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp
index ec130328bef..bd3d95e7295 100644
--- a/src/mongo/db/commands.cpp
+++ b/src/mongo/db/commands.cpp
@@ -424,8 +424,9 @@ void _generateErrorResponse(OperationContext* txn,
static_cast<const SendStaleConfigException&>(exception);
replyBuilder->setCommandReply(scex.toStatus(),
BSON("ns" << scex.getns() << "vReceived"
- << scex.getVersionReceived().toBSON() << "vWanted"
- << scex.getVersionWanted().toBSON()));
+ << BSONArray(scex.getVersionReceived().toBSON())
+ << "vWanted"
+ << BSONArray(scex.getVersionWanted().toBSON())));
} else {
replyBuilder->setCommandReply(exception.toStatus());
}