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

Destroy cursor before connection

This commit is contained in:
Aaron 2009-01-23 14:25:16 -05:00
parent ed4ce395ad
commit 3f0a199b79

View File

@ -159,8 +159,8 @@ namespace mongo {
bool sync();
void save(); // write ourself to local.sources
void resetConnection() {
conn = auto_ptr<DBClientConnection>(0);
cursor = auto_ptr<DBClientCursor>(0);
conn = auto_ptr<DBClientConnection>(0);
}
// make a jsobj from our member fields of the form