summaryrefslogtreecommitdiff
path: root/db/dbhelpers.cpp
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-12-21 17:43:06 -0500
committerDwight <dmerriman@gmail.com>2009-12-21 17:43:06 -0500
commit0e1575bd36b5ba6f26ac936ded86d0380f25dd37 (patch)
tree7b9f589f8d5f55ae3177d8e12a67fe087465f699 /db/dbhelpers.cpp
parenta9ba76825ecafb78987b523f9e73cc0abd62c23f (diff)
downloadmongo-0e1575bd36b5ba6f26ac936ded86d0380f25dd37.tar.gz
$atomic option on remove()
see http://www.mongodb.org/display/DOCS/Removing
Diffstat (limited to 'db/dbhelpers.cpp')
-rw-r--r--db/dbhelpers.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/db/dbhelpers.cpp b/db/dbhelpers.cpp
index d9b94037d47..d1a23e6d09c 100644
--- a/db/dbhelpers.cpp
+++ b/db/dbhelpers.cpp
@@ -30,7 +30,7 @@ namespace mongo {
CursorIterator::CursorIterator( auto_ptr<Cursor> c , BSONObj filter )
: _cursor( c ){
if ( ! filter.isEmpty() )
- _matcher.reset( new KeyValJSMatcher( filter , BSONObj() ) );
+ _matcher.reset( new CoveredIndexMatcher( filter , BSONObj() ) );
_advance();
}
@@ -100,7 +100,7 @@ namespace mongo {
if ( !c_->ok() )
setComplete();
else
- matcher_.reset( new KeyValJSMatcher( qp().query(), qp().indexKey() ) );
+ matcher_.reset( new CoveredIndexMatcher( qp().query(), qp().indexKey() ) );
}
virtual void next() {
if ( !c_->ok() ) {
@@ -120,7 +120,7 @@ namespace mongo {
private:
bool requireIndex_;
auto_ptr< Cursor > c_;
- auto_ptr< KeyValJSMatcher > matcher_;
+ auto_ptr< CoveredIndexMatcher > matcher_;
BSONObj one_;
};