summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2009-06-11 19:49:51 +0200
committerunknown <knielsen@knielsen-hq.org>2009-06-11 19:49:51 +0200
commit4b2aafb35cd2f04d96165100aee22b8836cf950d (patch)
treec11afa70602fb80e4e6e0854bd8d8bc4de7375bf /sql/slave.cc
parent1f81aa5f5aa48001b4b986c0d45ea094c78f896d (diff)
parent93bcda598bd6c58a7f5ad3d2e860b194325eed9f (diff)
downloadmariadb-git-4b2aafb35cd2f04d96165100aee22b8836cf950d.tar.gz
Merge of Percona XtraDB into MariaDB.
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc51
1 files changed, 0 insertions, 51 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index ec86a4c48e0..b6138078e35 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -755,57 +755,6 @@ const char *print_slave_db_safe(const char* db)
DBUG_RETURN((db ? db : ""));
}
-int init_strvar_from_file(char *var, int max_size, IO_CACHE *f,
- const char *default_val)
-{
- uint length;
- DBUG_ENTER("init_strvar_from_file");
-
- if ((length=my_b_gets(f,var, max_size)))
- {
- char* last_p = var + length -1;
- if (*last_p == '\n')
- *last_p = 0; // if we stopped on newline, kill it
- else
- {
- /*
- If we truncated a line or stopped on last char, remove all chars
- up to and including newline.
- */
- int c;
- while (((c=my_b_get(f)) != '\n' && c != my_b_EOF))
- ;
- }
- DBUG_RETURN(0);
- }
- else if (default_val)
- {
- strmake(var, default_val, max_size-1);
- DBUG_RETURN(0);
- }
- DBUG_RETURN(1);
-}
-
-
-int init_intvar_from_file(int* var, IO_CACHE* f, int default_val)
-{
- char buf[32];
- DBUG_ENTER("init_intvar_from_file");
-
-
- if (my_b_gets(f, buf, sizeof(buf)))
- {
- *var = atoi(buf);
- DBUG_RETURN(0);
- }
- else if (default_val)
- {
- *var = default_val;
- DBUG_RETURN(0);
- }
- DBUG_RETURN(1);
-}
-
/*
Note that we rely on the master's version (3.23, 4.0.14 etc) instead of
relying on the binlog's version. This is not perfect: imagine an upgrade