Skip to content

Commit

Permalink
[CBRD-24719] Add Proxy and CAS status check function (#4246)
Browse files Browse the repository at this point in the history
http://jira.cubrid.org/browse/CBRD-24719

When JDBC/CCI requests a query and does not receive a response for more than 10 seconds, the driver checks the CAS status through the broker.
However, when a shard is set, the shard broker does not have a function to check the status of the proxy and cas, so the driver judges that there is an error in the proxy and cas and terminates the communication.
A function that can check the status of proxy and cas should be added through Broker for Shard.
  • Loading branch information
airnet73 authored Mar 31, 2023
1 parent a55bcbe commit 5893f2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/broker/broker.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,11 @@ receiver_thr_f (void *arg)
memcpy ((char *) &session_id, cas_req_header + 6, 4);
session_id = ntohl (session_id);

if (shm_br->br_info[br_index].shard_flag == OFF)
if (shm_br->br_info[br_index].shard_flag == ON)
{
status = FN_STATUS_BUSY;
}
else
{
for (i = 0; i < shm_br->br_info[br_index].appl_server_max_num; i++)
{
Expand Down

0 comments on commit 5893f2d

Please sign in to comment.