From 329f3686f2f03ed580eada8a55117933f608cd7e Mon Sep 17 00:00:00 2001 From: airnet73 <61675061+airnet73@users.noreply.github.com> Date: Fri, 31 Mar 2023 10:04:17 +0900 Subject: [PATCH] [CBRD-24718] Access log file format error for shard (#4215) http://jira.cubrid.org/browse/CBRD-24718 Change the index of the shard access log file to start from 1 --- src/broker/broker_admin_pub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/broker/broker_admin_pub.c b/src/broker/broker_admin_pub.c index 2f906d76c77..2dedf70cdb1 100644 --- a/src/broker/broker_admin_pub.c +++ b/src/broker/broker_admin_pub.c @@ -3498,7 +3498,7 @@ proxy_activate (T_BROKER_INFO * br_info_p, T_SHM_PROXY * shm_proxy_p, T_SHM_APPL proxy_info_p = shard_shm_find_proxy_info (shm_proxy_p, i); snprintf (proxy_info_p->access_log_file, CONF_LOG_FILE_LEN - 1, "%s/%s_%d.access", CUBRID_BASE_DIR, - br_info_p->name, i); + br_info_p->name, (i + 1)); dir_repath (proxy_info_p->access_log_file, CONF_LOG_FILE_LEN); proxy_info_p->cur_proxy_log_mode = br_info_p->proxy_log_mode;