change store_server when use_trunk_file is true
parent
f76d24b52d
commit
90e94f4957
|
|
@ -56,7 +56,8 @@ store_group=group2
|
|||
# 0: round robin (default)
|
||||
# 1: the first server order by ip address
|
||||
# 2: the first server order by priority (the minimal)
|
||||
store_server=1
|
||||
# Note: if use_trunk_file set to true, must set store_server to 1 or 2
|
||||
store_server=0
|
||||
|
||||
# which path(means disk or mount point) of the storage server to upload file
|
||||
# 0: round robin
|
||||
|
|
|
|||
|
|
@ -695,6 +695,14 @@ int tracker_load_from_conf_file(const char *filename, \
|
|||
|
||||
#endif
|
||||
|
||||
if (g_if_use_trunk_file && g_groups.store_server == FDFS_STORE_SERVER_ROUND_ROBIN)
|
||||
{
|
||||
logInfo("file: "__FILE__", line: %d, "
|
||||
"set store_server to %d because use_trunk_file is true",
|
||||
__LINE__, FDFS_STORE_SERVER_FIRST_BY_IP);
|
||||
g_groups.store_server = FDFS_STORE_SERVER_FIRST_BY_IP;
|
||||
}
|
||||
|
||||
logInfo("FastDFS v%d.%02d, base_path=%s, " \
|
||||
"run_by_group=%s, run_by_user=%s, " \
|
||||
"connect_timeout=%ds, " \
|
||||
|
|
|
|||
Loading…
Reference in New Issue