summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/collection_metadata.cpp
diff options
context:
space:
mode:
authorAlex Taskov <alex.taskov@mongodb.com>2020-07-08 14:05:04 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-08 18:40:40 +0000
commit0b2b705b0de0e0f7f8ba28604dc5585a5dc5ba0b (patch)
tree80ac777b9deae3b02d0517dc401f528fed02ef9f /src/mongo/db/s/collection_metadata.cpp
parentb491225f92290b2d593e8b5f2411f1fe9f93088c (diff)
downloadmongo-0b2b705b0de0e0f7f8ba28604dc5585a5dc5ba0b.tar.gz
SERVER-48740 Modify ChunkMap to use std::vector internally
Diffstat (limited to 'src/mongo/db/s/collection_metadata.cpp')
-rw-r--r--src/mongo/db/s/collection_metadata.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/s/collection_metadata.cpp b/src/mongo/db/s/collection_metadata.cpp
index d83793ca0f7..984fa6a1059 100644
--- a/src/mongo/db/s/collection_metadata.cpp
+++ b/src/mongo/db/s/collection_metadata.cpp
@@ -130,8 +130,9 @@ Status CollectionMetadata::checkChunkIsValid(const ChunkType& chunk) const {
existingChunk.getMax().woCompare(chunk.getMax())) {
return {ErrorCodes::StaleShardVersion,
str::stream() << "Unable to find chunk with the exact bounds "
- << ChunkRange(chunk.getMin(), chunk.getMax()).toString()
- << " at collection version " << getCollVersion().toString()};
+ << chunk.getRange().toString() << " at collection version "
+ << getCollVersion().toString()
+ << " found existing chunk: " << existingChunk.toString()};
}
return Status::OK();