]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-replay: Fix bug in rbd-replay-prep, Thread::issued_io with wrong IO
authorAdam Crume <adamcrume@gmail.com>
Wed, 13 Aug 2014 00:42:31 +0000 (17:42 -0700)
committerSage Weil <sage@redhat.com>
Thu, 21 Aug 2014 17:57:33 +0000 (10:57 -0700)
Signed-off-by: Adam Crume <adamcrume@gmail.com>
src/rbd_replay/rbd-replay-prep.cc

index 0562a7f63e3a90a3aa51e4a09b944cf2a5b7a268..9e789a0a4924584b1ecda74e2565fd635cc3fec2 100644 (file)
@@ -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));