1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Replication fixes

This commit is contained in:
sasha@mysql.sashanet.com
2000-08-23 13:27:33 -06:00
parent 0c46a399e2
commit 7da3818fdd
3 changed files with 21 additions and 23 deletions

View File

@ -372,9 +372,11 @@ int show_master_info(THD* thd)
int flush_master_info(MASTER_INFO* mi)
{
FILE* file = mi->file;
char lbuf[22];
if(my_fseek(file, 0L, MY_SEEK_SET, MYF(MY_WME)) == MY_FILEPOS_ERROR ||
fprintf(file, "%s\n%ld\n%s\n%s\n%s\n%d\n%d\n",
mi->log_file_name, mi->pos, mi->host, mi->user, mi->password,
fprintf(file, "%s\n%s\n%s\n%s\n%s\n%d\n%d\n",
mi->log_file_name, llstr(mi->pos, lbuf), mi->host, mi->user, mi->password,
mi->port, mi->connect_retry) < 0 ||
fflush(file))
{