-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.11.1
-
Component/s: Public API
-
None
-
Environment:Irrelevant
Mongo::MongoClient.new("/var/run/mongodb.sock")
Produces:
ArgumentError: wrong number of arguments (0 for 2) from /home/tomas/.rvm/gems/ruby-2.0.0-p576@kvantel_toolkit/gems/mongo-1.11.1/lib/mongo/connection/socket/tcp_socket.rb:53:in `connect' from /home/tomas/.rvm/gems/ruby-2.0.0-p576@kvantel_toolkit/gems/mongo-1.11.1/lib/mongo/connection/socket/unix_socket.rb:36:in `initialize' from /home/tomas/.rvm/gems/ruby-2.0.0-p576@kvantel_toolkit/gems/mongo-1.11.1/lib/mongo/mongo_client.rb:544:in `new' from /home/tomas/.rvm/gems/ruby-2.0.0-p576@kvantel_toolkit/gems/mongo-1.11.1/lib/mongo/mongo_client.rb:544:in `check_is_master' from /home/tomas/.rvm/gems/ruby-2.0.0-p576@kvantel_toolkit/gems/mongo-1.11.1/lib/mongo/mongo_client.rb:400:in `connect' from /home/tomas/.rvm/gems/ruby-2.0.0-p576@kvantel_toolkit/gems/mongo-1.11.1/lib/mongo/mongo_client.rb:661:in `setup' from /home/tomas/.rvm/gems/ruby-2.0.0-p576@kvantel_toolkit/gems/mongo-1.11.1/lib/mongo/mongo_client.rb:177:in `initialize' from (irb):3:in `new' from (irb):3 from /home/tomas/.rvm/rubies/ruby-2.0.0-p576/bin/irb:12:in `<main>'
UnixSocket#initialize erroneously calls TcpSocket#connect with no arguments.
Github: unix_socket:36
Github: tcp_socket:53