diff options
author | Aaron <aaron@10gen.com> | 2009-03-19 16:23:04 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-03-19 16:23:04 -0400 |
commit | 5a276ef621d94465c474e95dde8b457f878b2bb0 (patch) | |
tree | 896d91c1485b187d6a626bbde8cb3439428e55f1 /tools/dump.cpp | |
parent | fdde87047f33a31a35636de71a02a98bb673ad5b (diff) | |
download | mongo-5a276ef621d94465c474e95dde8b457f878b2bb0.tar.gz |
Replace emptyObj with BSONObj()
Diffstat (limited to 'tools/dump.cpp')
-rw-r--r-- | tools/dump.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dump.cpp b/tools/dump.cpp index d0dd498e9bf..26604e15f0e 100644 --- a/tools/dump.cpp +++ b/tools/dump.cpp @@ -40,7 +40,7 @@ public: int out = open( outputFile.string().c_str() , O_WRONLY | O_CREAT | O_TRUNC , 0666 ); assert( out ); - auto_ptr<DBClientCursor> cursor = _conn.query( coll.c_str() , emptyObj , 0 , 0 , 0 , Option_SlaveOk ); + auto_ptr<DBClientCursor> cursor = _conn.query( coll.c_str() , BSONObj() , 0 , 0 , 0 , Option_SlaveOk ); int num = 0; while ( cursor->more() ) { @@ -61,7 +61,7 @@ public: string sns = db + ".system.namespaces"; - auto_ptr<DBClientCursor> cursor = _conn.query( sns.c_str() , emptyObj , 0 , 0 , 0 , Option_SlaveOk ); + auto_ptr<DBClientCursor> cursor = _conn.query( sns.c_str() , BSONObj() , 0 , 0 , 0 , Option_SlaveOk ); while ( cursor->more() ) { BSONObj obj = cursor->next(); if ( obj.toString().find( ".$" ) != string::npos ) |