summaryrefslogtreecommitdiff
path: root/src/mongo/s/request_types/balance_chunk_request_type.cpp
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2017-01-24 15:46:28 -0500
committerDianna Hohensee <dianna.hohensee@10gen.com>2017-01-30 09:23:10 -0500
commit03028591aec8f6e8f08c8c2be2f829772822d7dd (patch)
treeb41905dc8f1ff01571c6b507cba4cce1c32398be /src/mongo/s/request_types/balance_chunk_request_type.cpp
parent5605483c22231697d163005a4d6cf9ff194a179d (diff)
downloadmongo-03028591aec8f6e8f08c8c2be2f829772822d7dd.tar.gz
SERVER-27804 add additional parsers to ChunkType for shard's config.chunks.uuid collections
Diffstat (limited to 'src/mongo/s/request_types/balance_chunk_request_type.cpp')
-rw-r--r--src/mongo/s/request_types/balance_chunk_request_type.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/request_types/balance_chunk_request_type.cpp b/src/mongo/s/request_types/balance_chunk_request_type.cpp
index dbf40ddea43..543665db517 100644
--- a/src/mongo/s/request_types/balance_chunk_request_type.cpp
+++ b/src/mongo/s/request_types/balance_chunk_request_type.cpp
@@ -55,7 +55,7 @@ BalanceChunkRequest::BalanceChunkRequest(ChunkType chunk,
: _chunk(std::move(chunk)), _secondaryThrottle(std::move(secondaryThrottle)) {}
StatusWith<BalanceChunkRequest> BalanceChunkRequest::parseFromConfigCommand(const BSONObj& obj) {
- auto chunkStatus = ChunkType::fromBSON(obj);
+ auto chunkStatus = ChunkType::fromConfigBSON(obj);
if (!chunkStatus.isOK()) {
return chunkStatus.getStatus();
}
@@ -132,7 +132,7 @@ BSONObj BalanceChunkRequest::serializeToMoveCommandForConfig(
BSONObjBuilder cmdBuilder;
cmdBuilder.append(kConfigSvrMoveChunk, 1);
- cmdBuilder.appendElements(chunk.toBSON());
+ cmdBuilder.appendElements(chunk.toConfigBSON());
cmdBuilder.append(kToShardId, newShardId.toString());
cmdBuilder.append(kMaxChunkSizeBytes, static_cast<long long>(maxChunkSizeBytes));
{
@@ -152,7 +152,7 @@ BSONObj BalanceChunkRequest::serializeToRebalanceCommandForConfig(const ChunkTyp
BSONObjBuilder cmdBuilder;
cmdBuilder.append(kConfigSvrMoveChunk, 1);
- cmdBuilder.appendElements(chunk.toBSON());
+ cmdBuilder.appendElements(chunk.toConfigBSON());
cmdBuilder.append(WriteConcernOptions::kWriteConcernField,
kMajorityWriteConcernNoTimeout.toBSON());