From: Loic Dachary Date: Thu, 25 Sep 2014 23:15:53 +0000 (+0200) Subject: os: io_event.res is the size written X-Git-Tag: v0.88~120^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2577%2Fhead;p=ceph.git os: io_event.res is the size written And not an error code to be converted with cpp_strerror() Signed-off-by: Loic Dachary --- diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc index d6ddc7fa2129..5eab7b530aa2 100644 --- a/src/os/FileJournal.cc +++ b/src/os/FileJournal.cc @@ -1367,7 +1367,7 @@ void FileJournal::write_finish_thread_entry() aio_info *ai = (aio_info *)event[i].obj; if (event[i].res != ai->len) { derr << "aio to " << ai->off << "~" << ai->len - << " got " << cpp_strerror(event[i].res) << dendl; + << " wrote " << event[i].res << dendl; assert(0 == "unexpected aio error"); } dout(10) << "write_finish_thread_entry aio " << ai->off