0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

better assert for bad chunk config

This commit is contained in:
Eliot Horowitz 2010-10-23 17:59:36 -04:00
parent 9923c7b636
commit f1d5aae215

View File

@ -895,8 +895,8 @@ namespace mongo {
ChunkRangeMap::const_iterator min, max;
min = _chunkRanges.upper_bound(minObj);
max = _chunkRanges.upper_bound(maxObj);
assert(min != _chunkRanges.ranges().end());
massert( 13507 , (string)"invalid chunk config minObj: " + minObj.toString() , min != _chunkRanges.ranges().end());
// make max non-inclusive like end iterators
if(max != _chunkRanges.ranges().end())