diff options
Diffstat (limited to 'src/mon/KVMonitor.cc')
-rw-r--r-- | src/mon/KVMonitor.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mon/KVMonitor.cc b/src/mon/KVMonitor.cc index 37a81a8048d..0e9511c7c96 100644 --- a/src/mon/KVMonitor.cc +++ b/src/mon/KVMonitor.cc @@ -368,6 +368,8 @@ int KVMonitor::validate_osd_destroy( void KVMonitor::do_osd_destroy(int32_t id, uuid_d& uuid) { + ceph_assert(is_writeable()); + string dmcrypt_prefix = _get_dmcrypt_prefix(uuid, ""); string daemon_prefix = "daemon-private/osd." + stringify(id) + "/"; @@ -416,6 +418,7 @@ void KVMonitor::do_osd_new( const string& dmcrypt_key) { ceph_assert(paxos.is_plugged()); + ceph_assert(is_writeable()); string dmcrypt_key_prefix = _get_dmcrypt_prefix(uuid, "luks"); bufferlist dmcrypt_key_value; |