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:
parent
ed4ce395ad
commit
3f0a199b79
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user