From 660f1d68e436403983aea5e3259b4fe02a11d3ea Mon Sep 17 00:00:00 2001 From: Adam Crume Date: Tue, 12 Aug 2014 17:42:31 -0700 Subject: [PATCH] rbd-replay: Fix bug in rbd-replay-prep, Thread::issued_io with wrong IO Signed-off-by: Adam Crume --- src/rbd_replay/rbd-replay-prep.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rbd_replay/rbd-replay-prep.cc b/src/rbd_replay/rbd-replay-prep.cc index 0562a7f63e3a9..9e789a0a49245 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)); -- 2.39.5