]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os: io_event.res is the size written
authorLoic Dachary <loic-201408@dachary.org>
Thu, 25 Sep 2014 23:15:53 +0000 (01:15 +0200)
committerSage Weil <sage@redhat.com>
Tue, 21 Oct 2014 13:55:46 +0000 (06:55 -0700)
And not an error code to be converted with cpp_strerror()

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 7827e0035e3350ad2d9230f27a1629545f53af5c)

src/os/FileJournal.cc

index da930eb936ba2825525e34669671a1093733ed9c..ce98877d96f0aaa6f5f0601d4edaf95e0ea91342 100644 (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