diff options
author | unknown <ram@gw.mysql.r18.ru> | 2003-10-07 12:05:35 +0500 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2003-10-07 12:05:35 +0500 |
commit | 118d6df516dff65bf883e2615dc4e8d1ff2db142 (patch) | |
tree | 73574bf947749c4b86b0701d1f318a9af2555f49 /sql/log.cc | |
parent | 67b5aa64c94090de8129a6fcd2e68e047ce2e444 (diff) | |
download | mariadb-git-118d6df516dff65bf883e2615dc4e8d1ff2db142.tar.gz |
WL #562: Change format of slow log in 4.1
Diffstat (limited to 'sql/log.cc')
-rw-r--r-- | sql/log.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/log.cc b/sql/log.cc index 608a7e94431..41184615508 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -1564,7 +1564,7 @@ bool MYSQL_LOG::write(THD *thd,const char *query, uint query_length, VOID(pthread_mutex_unlock(&LOCK_log)); return 0; } - if ((specialflag & SPECIAL_LONG_LOG_FORMAT) || query_start_arg) + if (!(specialflag & SPECIAL_SHORT_LOG_FORMAT) || query_start_arg) { current_time=time(NULL); if (current_time != last_time) @@ -1617,7 +1617,7 @@ bool MYSQL_LOG::write(THD *thd,const char *query, uint query_length, // Save value if we do an insert. if (thd->insert_id_used) { - if (specialflag & SPECIAL_LONG_LOG_FORMAT) + if (!(specialflag & SPECIAL_SHORT_LOG_FORMAT)) { end=strmov(end,",insert_id="); end=longlong10_to_str((longlong) thd->last_insert_id,end,-10); |