diff options
Diffstat (limited to 'src/mongo/s/catalog/type_chunk.cpp')
-rw-r--r-- | src/mongo/s/catalog/type_chunk.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/catalog/type_chunk.cpp b/src/mongo/s/catalog/type_chunk.cpp index 9def6f376b2..88fd1fc3aa1 100644 --- a/src/mongo/s/catalog/type_chunk.cpp +++ b/src/mongo/s/catalog/type_chunk.cpp @@ -555,7 +555,7 @@ Status ChunkType::validate() const { while (minIt.more() && maxIt.more()) { BSONElement minElem = minIt.next(); BSONElement maxElem = maxIt.next(); - if (strcmp(minElem.fieldName(), maxElem.fieldName())) { + if (strcmp(minElem.fieldName(), maxElem.fieldName()) != 0) { return {ErrorCodes::BadValue, str::stream() << "min and max don't have matching keys: " << *_min << ", " << *_max}; |