Commit 88584757 authored by TousakaRin's avatar TousakaRin

fix bug: acc_reqeusts has'nt been initialized in sharedpart

parent 1b35abc0
......@@ -196,8 +196,9 @@ Socket::SharedPart::SharedPart(SocketId creator_socket_id2)
, in_num_messages(0)
, out_size(0)
, out_num_messages(0)
, extended_stat(NULL)
, acc_errors(0) {
, extended_stat(NULL)
, acc_errors(0)
, acc_requests(0) {
}
Socket::SharedPart::~SharedPart() {
......@@ -820,14 +821,6 @@ void Socket::AddRequestCount() {
}
}
uint64_t Socket::acc_errors() const {
SharedPart* sp = GetSharedPart();
if (sp) {
return sp->acc_errors.load(butil::memory_order_relaxed);
}
return 0;
}
int Socket::SetFailed(int error_code, const char* error_fmt, ...) {
if (error_code == 0) {
CHECK(false) << "error_code is 0";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment