summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2010-05-17 15:35:39 -0400
committerDwight <dwight@10gen.com>2010-05-17 15:35:39 -0400
commit002abac76787f5ff6cf1ca95b7f6116459be773c (patch)
tree18e18b8b7d06c7f593e33d47fbda18497556dd90
parentc84569159ba7b5f1aa45999ddbfdf59c3e645089 (diff)
downloadmongo-002abac76787f5ff6cf1ca95b7f6116459be773c.tar.gz
assert
-rw-r--r--db/btreecursor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/btreecursor.cpp b/db/btreecursor.cpp
index 79054b1008f..9d0a6c22256 100644
--- a/db/btreecursor.cpp
+++ b/db/btreecursor.cpp
@@ -41,6 +41,7 @@ namespace mongo {
{
audit();
init();
+ DEV assert( dups.size() == 0 );
}
BtreeCursor::BtreeCursor( NamespaceDetails *_d, int _idxNo, const IndexDetails& _id, const vector< pair< BSONObj, BSONObj > > &_bounds, int _direction )
@@ -58,6 +59,7 @@ namespace mongo {
assert( !bounds_.empty() );
audit();
initInterval();
+ DEV assert( dups.size() == 0 );
}
void BtreeCursor::audit() {