summaryrefslogtreecommitdiff
path: root/sql/sql_plugin.cc
diff options
context:
space:
mode:
authorunknown <kent@mysql.com>2006-02-07 22:39:55 +0100
committerunknown <kent@mysql.com>2006-02-07 22:39:55 +0100
commitd4e3c827537fb0204e216f68c634e69290f75e30 (patch)
tree3a15be0f25efe97c9f16f3d6308951403ce307f2 /sql/sql_plugin.cc
parent0ca5886f458ff025862155a14ca37c4705667538 (diff)
downloadmariadb-git-d4e3c827537fb0204e216f68c634e69290f75e30.tar.gz
sql_plugin.cc:
Bug#17196, --default-storage-engine option broken configure.in: This is an alpha configure.in: This is an alpha sql/sql_plugin.cc: Bug#17196, --default-storage-engine option broken
Diffstat (limited to 'sql/sql_plugin.cc')
-rw-r--r--sql/sql_plugin.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc
index b8628b18dd4..9f17694a137 100644
--- a/sql/sql_plugin.cc
+++ b/sql/sql_plugin.cc
@@ -345,7 +345,7 @@ struct st_plugin_int *plugin_lock(LEX_STRING *name, int type)
rw_wrlock(&THR_LOCK_plugin);
if ((rc= plugin_find_internal(name, type)))
{
- if (rc->state == PLUGIN_IS_READY)
+ if (rc->state == PLUGIN_IS_READY || rc->state == PLUGIN_IS_UNINITIALIZED)
rc->ref_count++;
else
rc= 0;