Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/tencent-wechat/phxsql
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcchen committed Jan 4, 2017
2 parents 138e883 + fb9f8c1 commit b87d430
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions phxsqlproxy/io_channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ int IOChannel::TransMsgDirect(int source_fd, int dest_fd, struct pollfd pf[], in
}

byte_size += written;
LOG_DEBUG("last read clientfd %d svrfd %d source %d dest %d ret %d read ret %d",
client_fd_, sqlsvr_fd_, source_fd, dest_fd, read_once, byte_size);
//LOG_DEBUG("last read clientfd %d svrfd %d source %d dest %d ret %d read ret %d",
// client_fd_, sqlsvr_fd_, source_fd, dest_fd, read_once, byte_size);
} else if (pf[i].revents & POLLHUP) {
LOG_DEBUG("source %d dest %d read events POLLHUP", source_fd, dest_fd);
} else if (pf[i].revents & POLLERR) {
Expand Down Expand Up @@ -287,10 +287,10 @@ void IOChannel::ByteFromConnectDestSvr(uint32_t byte_size) {
if (last_received_request_timestamp_) {
uint64_t cost = GetTimestampMS() - last_received_request_timestamp_;
if (connect_port_ == config_->GetMysqlPort()) {
LOG_DEBUG("recieve mysql resp cost %llu", cost);
//LOG_DEBUG("recieve mysql resp cost %llu", cost);
MonitorPluginEntry::GetDefault()->GetMonitorPlugin()->MysqlQueryCost(cost);
}
LOG_DEBUG("request exec cost %llu", cost);
//LOG_DEBUG("request exec cost %llu", cost);
MonitorPluginEntry::GetDefault()->GetMonitorPlugin()->RequestExecuteCost(cost);
}
}
Expand Down

0 comments on commit b87d430

Please sign in to comment.