~jameinel/juju-core/api-registry-tracks-type

Viewing all changes in revision 2715.5.1.

  • Committer: John Arbash Meinel
  • Date: 2014-05-12 07:59:38 UTC
  • mto: (2715.2.5 juju-core)
  • mto: This revision was merged to the branch mainline in revision 2720.
  • Revision ID: john@arbash-meinel.com-20140512075938-oe0wh81xipio1qv7
Fix bug #1301353 and use /usr/lib/juju/bin/mongodb when necessary.

As the store test suite now re-uses the testing infrastructure, we want to bias
our lookup to using 'mongod' from PATH since that will have v8 in it while
/usr/lib/juju/bin/mongodb won't.

Fixed another bug while I'm here, which is that if mongo fails to start, we get a panic()
because of readLastLines trying to read on an invalid handle. There was a bug where
if cmd.Start() returned an error, we kept on trying to read data from a mongo
that never existed.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: