]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
AsyncConnection: Don't use unsafe feature as message encode feature 5751/head
authorHaomai Wang <haomaiwang@gmail.com>
Wed, 2 Sep 2015 03:45:52 +0000 (11:45 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Wed, 2 Sep 2015 03:45:52 +0000 (11:45 +0800)
Fix #12908
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/msg/async/AsyncConnection.cc

index b0433e81f885099ca8ceec2279840ee65ea73fb0..3c607037c1e2bcaf3d8b944c8e65b3ab57bda2db 100644 (file)
@@ -1965,7 +1965,7 @@ int AsyncConnection::send_message(Message *m)
   }
   if (!is_queued() && can_write == CANWRITE) {
     if (!can_fast_prepare)
-      prepare_send_message(f, m, bl);
+      prepare_send_message(get_features(), m, bl);
     if (write_message(m, bl) < 0) {
       ldout(async_msgr->cct, 1) << __func__ << " send msg failed" << dendl;
       // we want to handle fault within internal thread