Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Jun 16, 2023
1 parent 0d06b42 commit 88ad734
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions be/src/http/ev_http_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static void on_chunked(struct evhttp_request* ev_req, void* param) {
static void on_close(evhttp_connection* con, void* arg) {
HttpRequest* request = (HttpRequest*)arg;
{
LOG(INFO) << "close connection "<< (void*)con;
LOG(INFO) << "close connection " << (void*)con;
std::lock_guard<std::mutex> l(g_conn_req_map_lock);
auto itr = g_conn_req_map.find(con);
if (itr != g_conn_req_map.end()) {
Expand All @@ -72,7 +72,8 @@ static void on_close(evhttp_connection* con, void* arg) {
<< " current HttpRequest=" << request
<< " but orginal HttpRequest=" << itr->second;
}
LOG(INFO) << "close connection "<< (void*)con << " req " << itr->second->debug_string();
LOG(INFO) << "close connection "<< (void*)con << " req "
<< itr->second->debug_string();
delete itr->second;
}
g_conn_req_map.erase(con);
Expand All @@ -83,8 +84,8 @@ static void on_close(evhttp_connection* con, void* arg) {
static void on_free(struct evhttp_request* ev_req, void* arg) {
HttpRequest* request = (HttpRequest*)arg;
{
LOG(INFO) << "free request "<< (void*)arg << " conn " << ev_req->evcon
<< " req " << request->debug_string();
LOG(INFO) << "free request "<< (void*)arg << " conn " << ev_req->evcon << " req "
<< request->debug_string();
std::lock_guard<std::mutex> l(g_conn_req_map_lock);
auto itr = g_conn_req_map.find(ev_req->evcon);
if (itr != g_conn_req_map.end()) {
Expand Down

0 comments on commit 88ad734

Please sign in to comment.