From 350da8c98bc1e90cd392992aba290c7478280d88 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Fri, 26 Sep 2014 01:15:53 +0200 Subject: [PATCH] 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) --- src/os/FileJournal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc index da930eb936ba2..ce98877d96f0a 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 -- 2.39.5