rename fc_combine_two_string to fc_combine_two_strings

use_iouring
YuQing 2025-08-09 15:22:04 +08:00
parent 7b3f6d620a
commit fc689a02ba
4 changed files with 4 additions and 4 deletions

View File

@ -229,7 +229,7 @@ int sf_binlog_index_save(SFBinlogIndexContext *ctx)
int result;
char tmp_filename[PATH_MAX];
fc_combine_two_string(ctx->filename, "tmp", '.', tmp_filename);
fc_combine_two_strings(ctx->filename, "tmp", '.', tmp_filename);
if ((result=save(ctx, tmp_filename)) != 0) {
return result;
}

View File

@ -357,7 +357,7 @@ static void *binlog_writer_func(void *arg)
#ifdef OS_LINUX
{
char thread_name[64];
fc_combine_two_string(thread->name, "writer", '-', thread_name);
fc_combine_two_strings(thread->name, "writer", '-', thread_name);
prctl(PR_SET_NAME, thread_name);
}
#endif

View File

@ -266,7 +266,7 @@ static int open_next_binlog(SFFileWriterInfo *writer)
formatDatetime(g_current_time, "%Y%m%d%H%M%S",
date_str, sizeof(date_str));
fc_combine_two_string(writer->file.name.str,
fc_combine_two_strings(writer->file.name.str,
date_str, '.', bak_filename);
if (rename(writer->file.name.str, bak_filename) == 0) {
logWarning("file: "__FILE__", line: %d, "

View File

@ -142,7 +142,7 @@ static void *binlog_writer_func(void *arg)
#ifdef OS_LINUX
{
char thread_name[64];
fc_combine_two_string(thread->name, "writer", '-', thread_name);
fc_combine_two_strings(thread->name, "writer", '-', thread_name);
prctl(PR_SET_NAME, thread_name);
}
#endif