msg/async: msgr2: don't force write event on every message received

Signed-off-by: Ricardo Dias <rdias@suse.com>
This commit is contained in:
Ricardo Dias 2019-01-25 19:42:37 +00:00
parent 5145120c2e
commit 1b097e8164
No known key found for this signature in database
GPG Key ID: 74390C579BD37B68
2 changed files with 2 additions and 2 deletions

View File

@ -983,7 +983,7 @@ CtPtr ProtocolV1::handle_message_footer(char *buffer, int r) {
<< message->get_seq() << " " << message << " " << *message
<< dendl;
bool need_dispatch_writer = true;
bool need_dispatch_writer = false;
if (!connection->policy.lossy) {
ack_left++;
need_dispatch_writer = true;

View File

@ -1944,7 +1944,7 @@ CtPtr ProtocolV2::handle_message_complete() {
<< " from=" << message->get_source() << " type=" << header.type
<< " " << *message << dendl;
bool need_dispatch_writer = true;
bool need_dispatch_writer = false;
if (!connection->policy.lossy) {
ack_left++;
need_dispatch_writer = true;