]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: prevent infinite loop when computing replay status
authorJason Dillaman <dillaman@redhat.com>
Thu, 4 May 2017 21:57:34 +0000 (17:57 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 27 Jun 2017 01:53:13 +0000 (21:53 -0400)
commit1d71475ff561c7f7d4936774d0ff821786b15fe6
tree4eabfe7bfab47cc7015633444dd78c43fda8ca08
parentb7a2e674601133f481449d3f8cdd3512ccbad51c
rbd-mirror: prevent infinite loop when computing replay status

If the image had a non-primary predecessor epoch whose tag tid
duplicates an epoch within its own journal, an infinite loop
would result.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 3f179bf86216540d8e25aad469c604f96f6aecd8)
src/tools/rbd_mirror/image_replayer/ReplayStatusFormatter.cc