db-migrate / mongodb

mongodb driver for db-migrate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Driver doesn't close connection

raffaele-clevermind opened this issue · comments

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);
   }

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

_run: function(command, collection, options, callback) {