Turn these into asserts. The only two callers are create_object_context()
and get_object_context(), and they only get called when the object is no
longer missing.
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
void ReplicatedPG::populate_obc_watchers(ObjectContext *obc)
{
- if (!is_active() ||
- is_missing_object(obc->obs.oi.soid)) {
- dout(10) << "populate_obc_watchers " << obc->obs.oi.soid << " !active or missing, waiting" << dendl;
- return;
- }
+ assert(is_active());
+ assert(!is_missing_object(obc->obs.oi.soid));
dout(10) << "populate_obc_watchers " << obc->obs.oi.soid << dendl;
if (!obc->obs.oi.watchers.empty()) {