[FEAT MERGE] support connection from LB in Public Cloud

This commit is contained in:
zhjc1124
2023-08-28 12:40:31 +00:00
committed by ob-robot
parent cf8e2df00e
commit 9e9f381d02
25 changed files with 860 additions and 154 deletions

View File

@ -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;