mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
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:
parent
5145120c2e
commit
1b097e8164
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user