0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

todo for cursor kill

This commit is contained in:
Eliot Horowitz 2009-01-08 17:08:43 -05:00
parent cd9d750a93
commit ab581691b5
2 changed files with 9 additions and 0 deletions

View File

@ -259,6 +259,13 @@ BSONObj DBClientCursor::next() {
return o;
}
DBClientCursor::~DBClientCursor(){
if ( cursorId ){
cerr << "TODO: need to kill the cursor here __FILE__:__LINE__" << endl;
}
}
/* ------------------------------------------------------ */
// "./db testclient" to invoke

View File

@ -109,6 +109,8 @@ public:
cursorId = 0;
}
virtual ~DBClientCursor();
private:
DBConnector *connector;
string ns;