]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: avoid dereferencing an empty container during deep-copy 28577/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 14 Jun 2019 17:34:24 +0000 (13:34 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sat, 15 Jun 2019 12:07:52 +0000 (08:07 -0400)
commitc937551e1244e308434e6774bc55da2d71e3c1b4
tree611217dd64e732ff532d15897ef00ec6340b4a63
parent100196fab43ed3a57cd3ae10eef931334ad209a0
librbd: avoid dereferencing an empty container during deep-copy

While updating the image copy progress, a 'while' loop will pop the
last item from the queue and then deference the empty queue.

Fixes: http://tracker.ceph.com/issues/40368
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 0f491cbb96ec55c68a627de71ed6ccd781a46dcc)
src/librbd/deep_copy/ImageCopyRequest.cc