Subject: | "(in cleanup) invalid object" when failing to connect to server |
Perl library gives off a "(in cleanup) invalid object" warning when
object is destroyed after failed to connect.
I've tracked this down to perl_mongo_get_ptr_from_instance croaking when
it can't find its internal pointer. The perl code (MongoDB/Connection.pm
line 497) when a connection fails so I don't think the croak is
necessary.
Test script:
my $connection;
eval {
$connection = MongoDB::Connection-
Show quoted text
>new('host','mongodb://localhost:52132,localhost:52132');
};
$connection = undef;