diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2012-03-14 16:37:49 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2012-03-14 16:37:49 +0400 |
commit | e3e2b4e1d15400f8fceb1ea3aa1b2ce1b4897477 (patch) | |
tree | 9883fc54b95bfc3a464aa7142a34c49e366e7c3d /include/mysql | |
parent | 620d62ac3e74f3e707d3d3745c8172df0989754c (diff) | |
download | mariadb-git-e3e2b4e1d15400f8fceb1ea3aa1b2ce1b4897477.tar.gz |
MDEV-15 Log SQL errors.
mysys/my_logger.c was moved to sql/sql_logger.c
Logger service was rewritten with file functions instead of stream, so it
can handle huge files.
Diffstat (limited to 'include/mysql')
-rw-r--r-- | include/mysql/plugin_audit.h.pp | 4 | ||||
-rw-r--r-- | include/mysql/plugin_auth.h.pp | 4 | ||||
-rw-r--r-- | include/mysql/plugin_ftparser.h.pp | 4 | ||||
-rw-r--r-- | include/mysql/service_logger.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/include/mysql/plugin_audit.h.pp b/include/mysql/plugin_audit.h.pp index 42ad957e556..dd7dde7973c 100644 --- a/include/mysql/plugin_audit.h.pp +++ b/include/mysql/plugin_audit.h.pp @@ -84,7 +84,7 @@ const char *set_thd_proc_info(void*, const char * info, const char *func, typedef struct logger_handle_st LOGGER_HANDLE; extern struct logger_service_st { LOGGER_HANDLE* (*open)(const char *path, - unsigned long size_limit, + unsigned long long size_limit, unsigned int rotations); int (*close)(LOGGER_HANDLE *log); int (*vprintf)(LOGGER_HANDLE *log, const char *fmt, va_list argptr); @@ -92,7 +92,7 @@ extern struct logger_service_st { int (*rotate)(LOGGER_HANDLE *log); } *logger_service; LOGGER_HANDLE *logger_open(const char *path, - unsigned long size_limit, + unsigned long long size_limit, unsigned int rotations); int logger_close(LOGGER_HANDLE *log); int logger_vprintf(LOGGER_HANDLE *log, const char *fmt, va_list argptr); diff --git a/include/mysql/plugin_auth.h.pp b/include/mysql/plugin_auth.h.pp index 146768f9575..cf3b60d128b 100644 --- a/include/mysql/plugin_auth.h.pp +++ b/include/mysql/plugin_auth.h.pp @@ -84,7 +84,7 @@ const char *set_thd_proc_info(void*, const char * info, const char *func, typedef struct logger_handle_st LOGGER_HANDLE; extern struct logger_service_st { LOGGER_HANDLE* (*open)(const char *path, - unsigned long size_limit, + unsigned long long size_limit, unsigned int rotations); int (*close)(LOGGER_HANDLE *log); int (*vprintf)(LOGGER_HANDLE *log, const char *fmt, va_list argptr); @@ -92,7 +92,7 @@ extern struct logger_service_st { int (*rotate)(LOGGER_HANDLE *log); } *logger_service; LOGGER_HANDLE *logger_open(const char *path, - unsigned long size_limit, + unsigned long long size_limit, unsigned int rotations); int logger_close(LOGGER_HANDLE *log); int logger_vprintf(LOGGER_HANDLE *log, const char *fmt, va_list argptr); diff --git a/include/mysql/plugin_ftparser.h.pp b/include/mysql/plugin_ftparser.h.pp index 59afe4276b4..14129aec85e 100644 --- a/include/mysql/plugin_ftparser.h.pp +++ b/include/mysql/plugin_ftparser.h.pp @@ -84,7 +84,7 @@ const char *set_thd_proc_info(void*, const char * info, const char *func, typedef struct logger_handle_st LOGGER_HANDLE; extern struct logger_service_st { LOGGER_HANDLE* (*open)(const char *path, - unsigned long size_limit, + unsigned long long size_limit, unsigned int rotations); int (*close)(LOGGER_HANDLE *log); int (*vprintf)(LOGGER_HANDLE *log, const char *fmt, va_list argptr); @@ -92,7 +92,7 @@ extern struct logger_service_st { int (*rotate)(LOGGER_HANDLE *log); } *logger_service; LOGGER_HANDLE *logger_open(const char *path, - unsigned long size_limit, + unsigned long long size_limit, unsigned int rotations); int logger_close(LOGGER_HANDLE *log); int logger_vprintf(LOGGER_HANDLE *log, const char *fmt, va_list argptr); diff --git a/include/mysql/service_logger.h b/include/mysql/service_logger.h index 315c382791e..47a478ef5b4 100644 --- a/include/mysql/service_logger.h +++ b/include/mysql/service_logger.h @@ -61,7 +61,7 @@ typedef struct logger_handle_st LOGGER_HANDLE; extern struct logger_service_st { LOGGER_HANDLE* (*open)(const char *path, - unsigned long size_limit, + unsigned long long size_limit, unsigned int rotations); int (*close)(LOGGER_HANDLE *log); int (*vprintf)(LOGGER_HANDLE *log, const char *fmt, va_list argptr); @@ -81,7 +81,7 @@ extern struct logger_service_st { #else LOGGER_HANDLE *logger_open(const char *path, - unsigned long size_limit, + unsigned long long size_limit, unsigned int rotations); int logger_close(LOGGER_HANDLE *log); int logger_vprintf(LOGGER_HANDLE *log, const char *fmt, va_list argptr); |