summaryrefslogtreecommitdiff
path: root/src/mongo/s/chunk_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/chunk_manager.cpp')
-rw-r--r--src/mongo/s/chunk_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/chunk_manager.cpp b/src/mongo/s/chunk_manager.cpp
index 2c477bb3e56..31de7493b57 100644
--- a/src/mongo/s/chunk_manager.cpp
+++ b/src/mongo/s/chunk_manager.cpp
@@ -273,7 +273,7 @@ ChunkMap ChunkMap::createMerged(
BSONObj ChunkMap::toBSON() const {
BSONObjBuilder builder;
- getVersion().serializeToBSON("startingVersion"_sd, &builder);
+ getVersion().serialize("startingVersion"_sd, &builder);
builder.append("chunkCount", static_cast<int64_t>(_chunkMap.size()));
{
@@ -866,7 +866,7 @@ void ComparableChunkVersion::setChunkVersion(const ChunkVersion& version) {
std::string ComparableChunkVersion::toString() const {
BSONObjBuilder builder;
if (_chunkVersion)
- _chunkVersion->serializeToBSON("chunkVersion"_sd, &builder);
+ _chunkVersion->serialize("chunkVersion"_sd, &builder);
else
builder.append("chunkVersion"_sd, "None");