]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
AsyncConnection: dispatch write handler when accept done
authorHaomai Wang <haomai@xsky.com>
Mon, 29 Feb 2016 16:28:02 +0000 (00:28 +0800)
committerHaomai Wang <haomai@xsky.com>
Mon, 29 Feb 2016 16:28:27 +0000 (00:28 +0800)
Fix #12912
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/msg/async/AsyncConnection.cc

index 49364490a2f529cc63da5a765afc2831012a81bf..c38a23cafcfaceadbdc282930b55d9de92f1832b 100644 (file)
@@ -1517,6 +1517,8 @@ ssize_t AsyncConnection::_process_connection()
         memset(&connect_msg, 0, sizeof(connect_msg));
         write_lock.Lock();
         can_write = CANWRITE;
+        if (is_queued())
+          center->dispatch_event_external(write_handler);
         write_lock.Unlock();
         break;
       }