]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: use PG::is_deleting()
authorSage Weil <sage@redhat.com>
Sat, 16 Sep 2017 03:53:57 +0000 (23:53 -0400)
committerSage Weil <sage@redhat.com>
Fri, 6 Oct 2017 18:08:18 +0000 (13:08 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc

index 5494ddccb6669d0b80cc97d29943f118e9c29133..0e7cb882e63ed67ffe0a605149f70adb99307301 100644 (file)
@@ -9048,7 +9048,7 @@ void OSD::do_recovery(
       goto out;
     }
 
-    assert(!pg->deleting);
+    assert(!pg->is_deleting());
     assert(pg->is_peered() && pg->is_primary());
 
     assert(pg->recovery_queued);
@@ -9216,7 +9216,7 @@ void OSD::dequeue_op(
     session->put();
   }
 
-  if (pg->deleting)
+  if (pg->is_deleting())
     return;
 
   op->mark_reached_pg();
@@ -9279,7 +9279,7 @@ void OSD::process_peering_events(
     PG *pg = *i;
     pg->lock_suspend_timeout(handle);
     curmap = service.get_osdmap();
-    if (pg->deleting) {
+    if (pg->is_deleting()) {
       pg->unlock();
       continue;
     }
@@ -9805,7 +9805,7 @@ void OSD::ShardedOpWQ::clear_pg_pointer(spg_t pgid)
   if (p != sdata->pg_slots.end()) {
     auto& slot = p->second;
     dout(20) << __func__ << " " << pgid << " pg " << slot.pg << dendl;
-    assert(!slot.pg || slot.pg->deleting);
+    assert(!slot.pg || slot.pg->is_deleting());
     slot.pg = nullptr;
   }
 }