summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTad Marshall <tad@10gen.com>2013-05-02 14:34:02 -0400
committerDan Pasette <dan@10gen.com>2013-05-13 07:30:17 -0400
commitc9cc631ac964aafd5c951ae61e2eb09920be1d81 (patch)
tree66c8a57dfc2abb66ba4aeedb79ce717b7b07acad
parente9483034118e5ffd7665889642c3c32e51022ecd (diff)
downloadmongo-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.h2
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;
}
//