]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: return something in PG::do_delete_work() 38483/head
authorKefu Chai <kchai@redhat.com>
Tue, 8 Dec 2020 08:33:26 +0000 (16:33 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 8 Dec 2020 08:55:13 +0000 (16:55 +0800)
this silences the warning of

crimson/osd/pg.cc:316:1: warning: no return statement in function returning non-void [-Wreturn-type]
  316 | }
      | ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg.cc

index 34ff7478cc240acb0289031b8cf4eb3f21d62858..812b31bb8a837a625e91fd2b1fa11451fcfd3f88 100644 (file)
@@ -313,6 +313,7 @@ ghobject_t PG::do_delete_work(ceph::os::Transaction &t,
 {
   // TODO
   shard_services.dec_pg_num();
+  return _next;
 }
 
 void PG::scrub_requested(bool deep, bool repair, bool need_auto)