Driver doesn't close connection
raffaele-clevermind opened this issue · comments
raffaele-clevermind commented
the method close for the mondo driver does nothing other then return a successfull promise, which means that the migration process doesn't close the connection
/**
* Closes the connection to mongodb
*/
close: function(callback) {
return Promise.resolve().nodeify(callback);
}
Tobias Gurtzick commented
No that is wrong. The mongodb driver currently has no active connection it utilizes, but an on demand connection spawned. So closed can't do anything, so this is correct.
See
Line 270 in 1ff0509