MCPcopy Create free account
hub / github.com/Tencent/phxsql / ClearAll

Method ClearAll

phxsqlproxy/io_routine.cpp:103–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void IORoutine::ClearAll() {
104 if (client_fd_ != -1 || sqlsvr_fd_ != -1) {
105 LOG_DEBUG("release clientfd %d svrfd %d", client_fd_, sqlsvr_fd_);
106 }
107
108 ReleaseFD(client_fd_);
109 ReleaseFD(sqlsvr_fd_);
110 io_router_->Clear();
111 io_channel_->Clear();
112 proxy_protocol_handler_->Clear();
113}
114
115void IORoutine::SetClientFD(int fd) {
116 ClearAll();

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected