diff options
author | Adam C. Emerson <aemerson@redhat.com> | 2018-08-23 17:25:51 +0200 |
---|---|---|
committer | Adam C. Emerson <aemerson@redhat.com> | 2018-08-27 16:27:22 +0200 |
commit | ab23c506964753990f9fe23e314b9f3e2547a773 (patch) | |
tree | 9ce9bd1976f3585a3dbd3b7c45aa17f850f0d57c /src/mgr/StandbyPyModules.cc | |
parent | messages: Use ceph_assert for asserts. (diff) | |
download | ceph-ab23c506964753990f9fe23e314b9f3e2547a773.tar.xz ceph-ab23c506964753990f9fe23e314b9f3e2547a773.zip |
mgr: Use ceph_assert for asserts.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Diffstat (limited to 'src/mgr/StandbyPyModules.cc')
-rw-r--r-- | src/mgr/StandbyPyModules.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mgr/StandbyPyModules.cc b/src/mgr/StandbyPyModules.cc index 60fe4a01747..0113ae1cf30 100644 --- a/src/mgr/StandbyPyModules.cc +++ b/src/mgr/StandbyPyModules.cc @@ -77,7 +77,7 @@ int StandbyPyModules::start_one(PyModuleRef py_module) Mutex::Locker l(lock); const std::string &module_name = py_module->get_name(); - assert(modules.count(module_name) == 0); + ceph_assert(modules.count(module_name) == 0); modules[module_name].reset(new StandbyPyModule( state, @@ -104,9 +104,9 @@ int StandbyPyModule::load() // We tell the module how we name it, so that it can be consistent // with us in logging etc. auto pThisPtr = PyCapsule_New(this, nullptr, nullptr); - assert(pThisPtr != nullptr); + ceph_assert(pThisPtr != nullptr); auto pModuleName = PyString_FromString(get_name().c_str()); - assert(pModuleName != nullptr); + ceph_assert(pModuleName != nullptr); auto pArgs = PyTuple_Pack(2, pModuleName, pThisPtr); Py_DECREF(pThisPtr); Py_DECREF(pModuleName); |