From e3e2b4e1d15400f8fceb1ea3aa1b2ce1b4897477 Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Wed, 14 Mar 2012 16:37:49 +0400 Subject: 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. --- include/mysql/plugin_audit.h.pp | 4 ++-- include/mysql/plugin_auth.h.pp | 4 ++-- include/mysql/plugin_ftparser.h.pp | 4 ++-- include/mysql/service_logger.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'include/mysql') 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); -- cgit v1.2.1