summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-08-20 22:54:42 +0200
committerunknown <serg@serg.mylan>2004-08-20 22:54:42 +0200
commit0745a2b783becf4b3ecb095cf8e43f67e333ba90 (patch)
treee8510e5d3f6b221a69a2c61f979f3786df718f3a /sql
parent5f74f8d5faf57740cdd43c03a9d5a8d58a357e45 (diff)
downloadmariadb-git-0745a2b783becf4b3ecb095cf8e43f67e333ba90.tar.gz
after merge fix
myisam/Makefile.am: put zlib at the end (libtool adds the whole bunch of dependencies right after that) sql/Makefile.am: put zlib at the end (libtool adds the whole bunch of dependencies right after that)
Diffstat (limited to 'sql')
-rw-r--r--sql/Makefile.am3
-rw-r--r--sql/handler.cc2
-rw-r--r--sql/sql_db.cc2
-rw-r--r--sql/sql_rename.cc2
-rw-r--r--sql/sql_table.cc2
5 files changed, 5 insertions, 6 deletions
diff --git a/sql/Makefile.am b/sql/Makefile.am
index ec4e729bedb..d951aae91e1 100644
--- a/sql/Makefile.am
+++ b/sql/Makefile.am
@@ -30,7 +30,6 @@ noinst_PROGRAMS = gen_lex_hash
bin_PROGRAMS = mysql_tzinfo_to_sql
gen_lex_hash_LDFLAGS = @NOINST_LDFLAGS@
LDADD = @isam_libs@ \
- @ZLIB_LIBS@ \
$(top_builddir)/myisam/libmyisam.a \
$(top_builddir)/myisammrg/libmyisammrg.a \
$(top_builddir)/heap/libheap.a \
@@ -38,7 +37,7 @@ LDADD = @isam_libs@ \
$(top_builddir)/mysys/libmysys.a \
$(top_builddir)/dbug/libdbug.a \
$(top_builddir)/regex/libregex.a \
- $(top_builddir)/strings/libmystrings.a
+ $(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
mysqld_LDADD = @MYSQLD_EXTRA_LDFLAGS@ \
@bdb_libs@ @innodb_libs@ @pstack_libs@ \
diff --git a/sql/handler.cc b/sql/handler.cc
index 39a6296a525..119e29a6a03 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -476,7 +476,7 @@ int ha_commit_trans(THD *thd, THD_TRANS* trans)
#ifdef USING_TRANSACTIONS
if (opt_using_transactions)
{
- bool operation_done= 0;
+ bool transaction_commited= 0;
bool operation_done= 0, need_start_waiters= 0;
/* If transaction has done some updates to tables */
diff --git a/sql/sql_db.cc b/sql/sql_db.cc
index f786e7476ac..cfc75e3be95 100644
--- a/sql/sql_db.cc
+++ b/sql/sql_db.cc
@@ -498,7 +498,7 @@ int mysql_alter_db(THD *thd, const char *db, HA_CREATE_INFO *create_info)
VOID(pthread_mutex_lock(&LOCK_mysql_create_db));
// do not alter database if another thread is holding read lock
- if ((error=wait_if_global_read_lock(thd,0)))
+ if ((error=wait_if_global_read_lock(thd,0,1)))
goto exit2;
/* Check directory */
diff --git a/sql/sql_rename.cc b/sql/sql_rename.cc
index d2b575c0838..afaf2ed0923 100644
--- a/sql/sql_rename.cc
+++ b/sql/sql_rename.cc
@@ -48,7 +48,7 @@ bool mysql_rename_tables(THD *thd, TABLE_LIST *table_list)
DBUG_RETURN(1);
}
- if (wait_if_global_read_lock(thd,0))
+ if (wait_if_global_read_lock(thd,0,1))
DBUG_RETURN(1);
VOID(pthread_mutex_lock(&LOCK_open));
if (lock_table_names(thd, table_list))
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 9ff46f219b1..b0b92178198 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1206,7 +1206,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
my_error(ER_TABLE_EXISTS_ERROR, MYF(0), alias);
DBUG_RETURN(-1);
}
- if (wait_if_global_read_lock(thd, 0))
+ if (wait_if_global_read_lock(thd, 0, 1))
DBUG_RETURN(error);
VOID(pthread_mutex_lock(&LOCK_open));
if (!tmp_table && !(create_info->options & HA_LEX_CREATE_TMP_TABLE))