[FEAT MERGE] support connection from LB in Public Cloud
This commit is contained in:
13
deps/oblib/src/rpc/obmysql/ob_sql_nio.cpp
vendored
13
deps/oblib/src/rpc/obmysql/ob_sql_nio.cpp
vendored
@ -488,6 +488,19 @@ static ObSqlSock *sess2sock(void *sess)
|
||||
return CONTAINER_OF(sess, ObSqlSock, sess_);
|
||||
}
|
||||
|
||||
int get_fd_from_sess(void *sess)
|
||||
{
|
||||
int fd = -1;
|
||||
ObSqlSock *sock = nullptr;
|
||||
if (OB_NOT_NULL(sess)) {
|
||||
sock = sess2sock(sess);
|
||||
}
|
||||
if (OB_NOT_NULL(sock)) {
|
||||
fd = sock->get_fd();
|
||||
}
|
||||
return fd;
|
||||
}
|
||||
|
||||
int ObSqlSock::set_ssl_enabled()
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user