ceph/ceph — pull request #2197 by jecluis (2014-08-04 20:17:39+00:00)
Title: ceph_mon: check for existing mon store before opening db

This will make sure that the monitor data directory is populated before
proceeding to opening it up. We have to do this in order to work around
leveldb, which will create 'store.db' (even though it won't populate it)
upon opening the database. Unwillingly, running the monitor without
first issuing a mkfs would have us ending up with a 'store.db' in the
monitor's data directory, and later on we would get errors from the
monitor not finding magic values within the store -- which given mkfs
hadn't been run isn't surprising.

Signed-off-by: Joao Eduardo Luis