LibreCat / Catmandu-Store-MongoDB

A searchable store backed by MongoDB
https://metacpan.org/pod/Catmandu::Store::MongoDB
4 stars 2 forks source link

Need a test to see if a store is connected #3

Closed phochste closed 10 years ago

phochste commented 10 years ago

store or bag only fail when excuting methods on them:

$b = Catmandu->store('MongoDB', database_name => 'test')->bag

Will return a bag even when there is no database running. You need to run a noop method on it to test the connection. This will die:

$b->first

Can this be changed?

phochste commented 10 years ago

This was a bug in the MongoDB::Client v0.704.1.0 which is fixed in v0.704.2.0