From: Adam Crume Date: Wed, 13 Aug 2014 00:42:31 +0000 (-0700) Subject: rbd-replay: Fix bug in rbd-replay-prep, Thread::issued_io with wrong IO X-Git-Tag: v0.86~231^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=660f1d68e436403983aea5e3259b4fe02a11d3ea;p=ceph.git rbd-replay: Fix bug in rbd-replay-prep, Thread::issued_io with wrong IO Signed-off-by: Adam Crume --- diff --git a/src/rbd_replay/rbd-replay-prep.cc b/src/rbd_replay/rbd-replay-prep.cc index 0562a7f63e3a..9e789a0a4924 100644 --- a/src/rbd_replay/rbd-replay-prep.cc +++ b/src/rbd_replay/rbd-replay-prep.cc @@ -864,7 +864,7 @@ private: action_id_t ionum = next_id(); IO::ptr io(new CloseImageIO(ionum, ts, threadID, thread->pending_io(), imagectx)); io->add_dependencies(m_recent_completions); - thread->issued_io(thread->pending_io(), m_threads); + thread->issued_io(io, m_threads); m_ios.push_back(thread->pending_io()); } else if (strcmp(event_name, "librbd:close_image_exit") == 0) { IO::ptr completionIO(thread->pending_io()->create_completion(ts, threadID));