]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: do not clear image replayer error code after shut down
authorJason Dillaman <dillaman@redhat.com>
Fri, 24 Jun 2016 00:28:02 +0000 (20:28 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 17 Aug 2016 17:22:03 +0000 (13:22 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 1fc27545c2092c178293ed636b6aadb11bc8cbd3)

src/tools/rbd_mirror/ImageReplayer.cc

index 696ff60ae974cdc696713ed6b9d50ee7cd07cfcc..bbb1cbe5384d3d7c65d348d34c14d6efdb893bbf 100644 (file)
@@ -1368,8 +1368,6 @@ void ImageReplayer<I>::handle_shut_down(int r, Context *on_start) {
     m_stop_requested = false;
     assert(m_state == STATE_STOPPING);
     m_state = STATE_STOPPED;
-    m_state_desc.clear();
-    m_last_r = 0;
   }
 
   if (on_start != nullptr) {