os: io_event.res is the size written

And not an error code to be converted with cpp_strerror()

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
This commit is contained in:
Loic Dachary 2014-09-26 01:15:53 +02:00
parent 7a39e7cbe6
commit 7827e0035e

View File

@ -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