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.80.8~34^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=350da8c98bc1e90cd392992aba290c7478280d88;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 (cherry picked from commit 7827e0035e3350ad2d9230f27a1629545f53af5c) --- diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc index da930eb936ba..ce98877d96f0 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