diff options
author | unknown <knielsen@knielsen-hq.org> | 2009-06-11 14:53:26 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2009-06-11 14:53:26 +0200 |
commit | 93bcda598bd6c58a7f5ad3d2e860b194325eed9f (patch) | |
tree | 014bccd2ba79d230f4f3cb4ff03f89640b99e1e4 /include/my_sys.h | |
parent | d2d7b5bbb6796ee171ef605f5ea61cb782918b72 (diff) | |
parent | 121461f6f3987c4b058d64775f1380016b68896c (diff) | |
download | mariadb-git-93bcda598bd6c58a7f5ad3d2e860b194325eed9f.tar.gz |
Merge latest XtraDB from lp:percona-xtradb into MariaDB.
include/my_sys.h:
Move generic file parsing functions out to shared code, as they are used in several places.
mysys/mf_iocache2.c:
Move generic file parsing functions out to shared code, as they are used in several places.
sql/log_event.cc:
Fix XtraDB build with embedded server.
XtraDB needs access to replication stuff, which is missing in embedded server.
Solved by defining wrapper function for this which is compiled differently for normal and
embedded case.
sql/log_event.h:
Fix XtraDB build with embedded server.
XtraDB needs access to replication stuff, which is missing in embedded server.
Solved by defining wrapper function for this which is compiled differently for normal and
embedded case.
sql/slave.cc:
Move generic file parsing functions out to shared code, as they are used in several places.
Diffstat (limited to 'include/my_sys.h')
-rw-r--r-- | include/my_sys.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h index 07e56f1c91f..5752db9267e 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -793,6 +793,9 @@ extern size_t my_b_gets(IO_CACHE *info, char *to, size_t max_length); extern my_off_t my_b_filelength(IO_CACHE *info); extern size_t my_b_printf(IO_CACHE *info, const char* fmt, ...); extern size_t my_b_vprintf(IO_CACHE *info, const char* fmt, va_list ap); +extern int init_strvar_from_file(char *var, int max_size, IO_CACHE *f, + const char *default_val); +extern int init_intvar_from_file(int* var, IO_CACHE* f, int default_val); extern my_bool open_cached_file(IO_CACHE *cache,const char *dir, const char *prefix, size_t cache_size, myf cache_myflags); |