diff options
author | Joao Eduardo Luis <joao.luis@inktank.com> | 2013-07-16 16:46:53 +0100 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-07-16 10:32:14 -0700 |
commit | e752c40c2332395e3ec93c1c861cf9365d518f27 (patch) | |
tree | cbd8d4153ffb318f951571c502d2118bffc37027 | |
parent | 036e6739a4e873863bae3d7d00f310c015dfcdb3 (diff) | |
download | ceph-e752c40c2332395e3ec93c1c861cf9365d518f27.tar.gz |
mon: Monitor: StoreConverter: sanitize 'store' pointer on init
We are supposed to have umount'ed the store and set the pointer to NULL.
We should not tolerate any other case on init().
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/mon/Monitor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mon/Monitor.h b/src/mon/Monitor.h index 5bf0c0ef962..82b08816702 100644 --- a/src/mon/Monitor.h +++ b/src/mon/Monitor.h @@ -788,6 +788,7 @@ public: bool _check_gv_store(); void _init() { + assert(!store); MonitorStore *store_ptr = new MonitorStore(path); store.reset(store_ptr); } |