]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
radosstriper: assert(ref==1) in MultiAioCompletion's dtor
authorKefu Chai <kchai@redhat.com>
Mon, 5 Jun 2017 05:51:45 +0000 (13:51 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 5 Jun 2017 06:07:08 +0000 (14:07 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/libradosstriper/libradosstriper.cc

index c72899a5fa0a9422097cc83b3d35d6f61942aa31..193ee16c05d7450e1429f862f8263768ac9592dd 100644 (file)
@@ -34,7 +34,8 @@
 
 libradosstriper::MultiAioCompletion::~MultiAioCompletion()
 {
-  delete pc;
+  assert(pc->ref == 1);
+  pc->put();
 }
 
 int libradosstriper::MultiAioCompletion::set_complete_callback