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:
parent
9923c7b636
commit
f1d5aae215
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user