Skip to content

Commit

Permalink
[CBRD-24630] The stop command of cubrid hb applylogdb with -h option …
Browse files Browse the repository at this point in the history
…does not work correctly when the build is generated in the QA environment, release mode and devtoolset-9 (CUBRID#4107)

http://jira.cubrid.org/browse/CBRD-24630
  • Loading branch information
hornetmj authored Feb 14, 2023
1 parent b04abd5 commit 4955c8e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/executables/commdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ process_ha_deregister_by_pid (CSS_CONN_ENTRY * conn, char *pid_string)
rid = send_request_one_arg (conn, DEREGISTER_HA_PROCESS_BY_PID, (char *) &pid, sizeof (pid));
return_string (conn, rid, &reply_buffer, &size);

if (size > 0 && strcmp (reply_buffer, HA_REQUEST_SUCCESS) == 0)
if (size > 0 && strncmp (reply_buffer, HA_REQUEST_SUCCESS, size - 1) == 0)
{
error = NO_ERROR;
}
Expand Down Expand Up @@ -784,7 +784,7 @@ process_ha_deregister_by_args (CSS_CONN_ENTRY * conn, char *args)
rid = send_request_one_arg (conn, DEREGISTER_HA_PROCESS_BY_ARGS, (char *) buffer, len);
return_string (conn, rid, &reply_buffer, &size);

if (size > 0 && strcmp (reply_buffer, HA_REQUEST_SUCCESS) == 0)
if (size > 0 && strncmp (reply_buffer, HA_REQUEST_SUCCESS, size - 1) == 0)
{
error = NO_ERROR;
}
Expand Down Expand Up @@ -868,7 +868,7 @@ process_deactivate_heartbeat (CSS_CONN_ENTRY * conn)

return_string (conn, rid, &result_reply_buffer, &size);
#endif
if (size > 0 && strcmp (result_reply_buffer, HA_REQUEST_SUCCESS) == 0)
if (size > 0 && strncmp (result_reply_buffer, HA_REQUEST_SUCCESS, size - 1) == 0)
{
error = NO_ERROR;
}
Expand Down Expand Up @@ -904,7 +904,7 @@ process_deact_confirm_no_server (CSS_CONN_ENTRY * conn)
return_string (conn, rid, &reply_buffer, &size);
#endif

if (size > 0 && strcmp (reply_buffer, HA_REQUEST_SUCCESS) == 0)
if (size > 0 && strncmp (reply_buffer, HA_REQUEST_SUCCESS, size - 1) == 0)
{
error = NO_ERROR;
}
Expand Down Expand Up @@ -936,7 +936,7 @@ process_deact_confirm_stop_all (CSS_CONN_ENTRY * conn)
return_string (conn, rid, &reply_buffer, &size);
#endif

if (size > 0 && strcmp (reply_buffer, HA_REQUEST_SUCCESS) == 0)
if (size > 0 && strncmp (reply_buffer, HA_REQUEST_SUCCESS, size - 1) == 0)
{
error = NO_ERROR;
}
Expand Down Expand Up @@ -969,7 +969,7 @@ process_deact_stop_all (CSS_CONN_ENTRY * conn)
return_string (conn, rid, &reply_buffer, &size);
#endif /* !WINDOWS */

if (size > 0 && strcmp (reply_buffer, HA_REQUEST_SUCCESS) == 0)
if (size > 0 && strncmp (reply_buffer, HA_REQUEST_SUCCESS, size - 1) == 0)
{
error = NO_ERROR;
}
Expand Down Expand Up @@ -1006,7 +1006,7 @@ process_activate_heartbeat (CSS_CONN_ENTRY * conn)
return_string (conn, rid, &reply_buffer, &size);
#endif

if (size > 0 && strcmp (reply_buffer, HA_REQUEST_SUCCESS) == 0)
if (size > 0 && strncmp (reply_buffer, HA_REQUEST_SUCCESS, size - 1) == 0)
{
error = NO_ERROR;
}
Expand Down Expand Up @@ -1045,7 +1045,7 @@ process_ha_start_util_process (CSS_CONN_ENTRY * conn, char *args)
rid = send_request_one_arg (conn, START_HA_UTIL_PROCESS, (char *) buffer, len);
return_string (conn, rid, &reply_buffer, &size);

if (size > 0 && strcmp (reply_buffer, HA_REQUEST_SUCCESS) == 0)
if (size > 0 && strncmp (reply_buffer, HA_REQUEST_SUCCESS, size - 1) == 0)
{
error = NO_ERROR;
}
Expand Down

0 comments on commit 4955c8e

Please sign in to comment.