修复DSS没有debug日志的问题

This commit is contained in:
jihanyu
2023-02-02 16:30:00 +08:00
parent 017c9329f8
commit 9ffe8a74d3
3 changed files with 10 additions and 3 deletions

View File

@ -711,6 +711,9 @@ ss_interconnect_channel_count|int|1,32|NULL|NULL|
ss_work_thread_count|int|16,128|NULL|NULL|
ss_recv_msg_pool_size|int|1024,1048576|kB|NULL|
ss_interconnect_type|string|0,0|NULL|NULL|
ss_log_level|int|0,887|NULL|NULL|
ss_log_backup_file_count|int|0,128|NULL|NULL|
ss_log_max_file_size|int|1024,4194304|kB|NULL|
ss_instance_id|int|0,63|NULL|NULL|
ss_interconnect_url|string|0,0|NULL|NULL|
ss_rdma_work_config|string|0,0|NULL|NULL|

View File

@ -835,3 +835,6 @@ job_queue_processes = 10 # Number of concurrent jobs, optional: [0..1000]
#ss_scrlock_worker_count = 2
#ss_scrlock_worker_bind_core = ''
#ss_scrlock_server_bind_core = ''
#ss_log_level = 7
#ss_log_backup_file_count = 10
#ss_log_max_file_size = 10MB

View File

@ -2454,6 +2454,9 @@ int PostmasterMain(int argc, char* argv[])
* the saved backend variables will be restored in
* DCF call back thread share memory init function.
*/
if (ENABLE_DSS) {
DSSInitLogger();
}
if (g_instance.attr.attr_storage.dcf_attr.enable_dcf || g_instance.attr.attr_storage.dms_attr.enable_dms) {
int ss_rc = memset_s(&port, sizeof(port), 0, sizeof(port));
securec_check(ss_rc, "\0", "\0");
@ -2467,9 +2470,7 @@ int PostmasterMain(int argc, char* argv[])
}
}
if (ENABLE_DSS) {
DSSInitLogger();
}
/*
* We're ready to rock and roll...