]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: set deleted parent pointer to null 20210/head
authorJason Dillaman <dillaman@redhat.com>
Sat, 18 Nov 2017 13:30:27 +0000 (08:30 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 31 Jan 2018 16:45:51 +0000 (11:45 -0500)
Fixes: http://tracker.ceph.com/issues/22158
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 7b53256bb825383fc604a96d71bcd51c36668cc4)

src/librbd/image/RefreshParentRequest.cc

index 86001da82c60a490fdc2207ed328da3965e352de..6e9a4449f3991bcf2a5dd4f587c9a85b1642cbc1 100644 (file)
@@ -212,6 +212,8 @@ Context *RefreshParentRequest<I>::handle_close_parent(int *result) {
   ldout(cct, 10) << this << " " << __func__ << " r=" << *result << dendl;
 
   delete m_parent_image_ctx;
+  m_parent_image_ctx = nullptr;
+
   if (*result < 0) {
     lderr(cct) << "failed to close parent image: " << cpp_strerror(*result)
                << dendl;