summaryrefslogtreecommitdiffstats
path: root/src/librbd/operation/ObjectMapIterate.cc
diff options
context:
space:
mode:
authorJason Dillaman <dillaman@redhat.com>2017-03-02 16:29:36 +0100
committerJason Dillaman <dillaman@redhat.com>2017-03-10 02:25:18 +0100
commitcc5ac6aa66f4c97cbe1c7d6334b3f710610f6742 (patch)
tree88190047df0e7cd4300cf5cc1106c4887e503651 /src/librbd/operation/ObjectMapIterate.cc
parenttest/librados_test_stub: support blacklisting of connections (diff)
downloadceph-cc5ac6aa66f4c97cbe1c7d6334b3f710610f6742.tar.xz
ceph-cc5ac6aa66f4c97cbe1c7d6334b3f710610f6742.zip
librbd: avoid duplicating librados IoCtx objects if not needed
This introduces the potential for shutdown race conditions within the unit tests. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Diffstat (limited to 'src/librbd/operation/ObjectMapIterate.cc')
-rw-r--r--src/librbd/operation/ObjectMapIterate.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librbd/operation/ObjectMapIterate.cc b/src/librbd/operation/ObjectMapIterate.cc
index 5276388d09f..35119e0f5cd 100644
--- a/src/librbd/operation/ObjectMapIterate.cc
+++ b/src/librbd/operation/ObjectMapIterate.cc
@@ -47,6 +47,8 @@ public:
if (should_complete(r)) {
ldout(image_ctx.cct, 20) << m_oid << " C_VerifyObjectCallback completed "
<< dendl;
+ m_io_ctx.close();
+
this->finish(r);
delete this;
}