msg/async: add numevents statistics for external_eventsReviewed-by: Haomai Wang <haomai@xsky.com>

msg/async: add numevents statistics for external_events

Reviewed-by: Haomai Wang <haomai@xsky.com>
This commit is contained in:
Haomai Wang 2016-04-26 22:14:31 +08:00
commit bd77cd4139
2 changed files with 2 additions and 1 deletions

View File

@ -646,7 +646,7 @@ void AsyncConnection::process()
// verify header crc
if (msgr->crcflags & MSG_CRC_HEADER && header_crc != header.crc) {
ldout(async_msgr->cct,0) << __func__ << " reader got bad header crc "
ldout(async_msgr->cct,0) << __func__ << " got bad header crc "
<< header_crc << " != " << header.crc << dendl;
goto fail;
}

View File

@ -430,6 +430,7 @@ int EventCenter::process_events(int timeout_microseconds)
if (e)
e->do_request(0);
cur_process.pop_front();
numevents++;
}
}
}