From: Haomai Wang Date: Wed, 2 Sep 2015 03:45:52 +0000 (+0800) Subject: AsyncConnection: Don't use unsafe feature as message encode feature X-Git-Tag: v9.1.0~207^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b02cc060ebf40939796d2adcbbc661bae304f1b7;p=ceph.git AsyncConnection: Don't use unsafe feature as message encode feature Fix #12908 Signed-off-by: Haomai Wang --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index b0433e81f88..3c607037c1e 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -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