summaryrefslogtreecommitdiff
path: root/src/mongo/db/geo/haystack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/geo/haystack.cpp')
-rw-r--r--src/mongo/db/geo/haystack.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/geo/haystack.cpp b/src/mongo/db/geo/haystack.cpp
index 104665087f6..7fe646e62a0 100644
--- a/src/mongo/db/geo/haystack.cpp
+++ b/src/mongo/db/geo/haystack.cpp
@@ -149,7 +149,7 @@ namespace mongo {
}
- assert( _other.size() == 1 );
+ verify( _other.size() == 1 );
BSONElementSet all;
obj.getFieldsDotted( _other[0] , all );
@@ -167,7 +167,7 @@ namespace mongo {
shared_ptr<Cursor> newCursor( const BSONObj& query , const BSONObj& order , int numWanted ) const {
shared_ptr<Cursor> c;
- assert(0);
+ verify(0);
return c;
}
@@ -290,7 +290,7 @@ namespace mongo {
IndexDetails& id = d->idx( idxNum );
GeoHaystackSearchIndex * si = (GeoHaystackSearchIndex*)id.getSpec().getType();
- assert( &id == si->getDetails() );
+ verify( &id == si->getDetails() );
BSONElement n = cmdObj["near"];
BSONElement maxDistance = cmdObj["maxDistance"];