]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: set deleted parent pointer to null 19003/head
authorJason Dillaman <dillaman@redhat.com>
Sat, 18 Nov 2017 13:30:27 +0000 (08:30 -0500)
committerJason Dillaman <dillaman@redhat.com>
Sat, 18 Nov 2017 13:30:27 +0000 (08:30 -0500)
Fixes: http://tracker.ceph.com/issues/22158
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/image/RefreshParentRequest.cc

index 9ad7ed05d0a2c2961f9f96c6f779eb15f59c50a0..df9ff9548b0f2bfc346ae3f42dfcd689ac32c1bf 100644 (file)
@@ -213,6 +213,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;