]> 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, 6 Jul 2016 15:36:28 +0000 (11:36 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd_mirror/ImageReplayer.cc

index 40266665eea781f8932b3bb16195edc65548258d..c2c0c40f6659cb9d5c109b5159f583ad4805eee2 100644 (file)
@@ -1361,8 +1361,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) {