]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: print error log if add_event fail 17102/head
authormychoxin <mychoxin@gmail.com>
Sat, 26 Aug 2017 02:49:35 +0000 (10:49 +0800)
committermychoxin <mychoxin@gmail.com>
Thu, 7 Sep 2017 02:22:07 +0000 (10:22 +0800)
Signed-off-by: mychoxin <mychoxin@gmail.com>
src/msg/async/Event.cc

index 690a245317ff9b064f80deb885e1226ff18db599..92d7f73b5c420e3850c94db1f547af821228f13f 100644 (file)
@@ -230,6 +230,8 @@ int EventCenter::create_file_event(int fd, int mask, EventCallbackRef ctxt)
     // Actually we don't allow any failed error code, caller doesn't prepare to
     // handle error status. So now we need to assert failure here. In practice,
     // add_event shouldn't report error, otherwise it must be a innermost bug!
+    lderr(cct) << __func__ << " add event failed, ret=" << r << " fd=" << fd
+               << " mask=" << mask << " original mask is " << event->mask << dendl;
     assert(0 == "BUG!");
     return r;
   }