From 161f4d012cb00bf40853a0bb59f22d1373dbff53 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 9 Nov 2009 21:05:38 +0300 Subject: * Avoid mmap'ing in binlog as mmapped areas must be aligned * Make binlog working for writing * Add config params for binlog --- src/cfg_file.l | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cfg_file.l') diff --git a/src/cfg_file.l b/src/cfg_file.l index bc46bbc1f..fdb151b45 100644 --- a/src/cfg_file.l +++ b/src/cfg_file.l @@ -209,9 +209,13 @@ yes|YES|no|NO|[yY]|[nN] yylval.flag=parse_flag(yytext); return FLAG; autolearn return AUTOLEARN; min_mark return MIN_MARK; max_mark return MAX_MARK; +binlog return BINLOG; +binlog_master return BINLOG_MASTER; +binlog_rotate return BINLOG_ROTATE; [0-9]+ yylval.number=strtol(yytext, NULL, 10); return NUMBER; -?[0-9]+\.?[0-9]* yylval.fract=strtod(yytext, NULL); return FRACT; [0-9]+[kKmMgG]? yylval.limit=parse_limit(yytext); return SIZELIMIT; +[0-9]+[mMsShHdD]? yylval.seconds=parse_seconds(yytext); return SECONDS; \$[a-zA-Z_][a-zA-Z0-9_]+ yylval.string=strdup(yytext + 1); return VARIABLE; [a-zA-Z0-9_%-]+ yylval.string=strdup(yytext); return PARAM; \".+[^\\]\" yylval.string=strdup(yytext + 1); yylval.string[strlen(yylval.string) - 1] = '\0'; unescape_quotes(yylval.string); return QUOTEDSTRING; -- cgit v1.2.3