diff options
author | Tad Marshall <tad@10gen.com> | 2013-05-02 14:34:02 -0400 |
---|---|---|
committer | Dan Pasette <dan@10gen.com> | 2013-05-13 07:30:17 -0400 |
commit | c9cc631ac964aafd5c951ae61e2eb09920be1d81 (patch) | |
tree | 66c8a57dfc2abb66ba4aeedb79ce717b7b07acad | |
parent | e9483034118e5ffd7665889642c3c32e51022ecd (diff) | |
download | mongo-c9cc631ac964aafd5c951ae61e2eb09920be1d81.tar.gz |
SERVER-9542 Change comparison operator to correct type
Do not use "<" to execute a "<=" comparison.
-rw-r--r-- | src/mongo/s/chunk_version.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/chunk_version.h b/src/mongo/s/chunk_version.h index 48986a10c28..36d5ac140ef 100644 --- a/src/mongo/s/chunk_version.h +++ b/src/mongo/s/chunk_version.h @@ -116,7 +116,7 @@ namespace mongo { } bool operator<=( const ChunkVersion& otherVersion ) const { - return this->_combined < otherVersion._combined; + return this->_combined <= otherVersion._combined; } // |