Skip to content

Commit 463811e

Browse files
monty review: fixes after reapplying plugin patch from "crashed" 5.1 tree
1 parent 3791197 commit 463811e

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

include/my_global.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,16 +1380,6 @@ do { doubleget_union _tmp; \
13801380
#define dlerror() ""
13811381
#endif
13821382

1383-
#ifdef HAVE_DLOPEN
1384-
#if defined(__WIN__)
1385-
#define dlsym(lib, name) GetProcAddress((HMODULE)lib, name)
1386-
#define dlopen(libname, unused) LoadLibraryEx(libname, NULL, 0)
1387-
#define dlclose(lib) FreeLibrary((HMODULE)lib)
1388-
#elif !defined(OS2)
1389-
#include <dlfcn.h>
1390-
#endif
1391-
#endif
1392-
13931383
/* FreeBSD 2.2.2 does not define RTLD_NOW) */
13941384
#ifndef RTLD_NOW
13951385
#define RTLD_NOW 1

sql/mysqld.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6303,9 +6303,6 @@ static void mysql_init_variables(void)
63036303
sizeof(mysql_real_data_home)-1);
63046304
mysql_data_home_buff[0]=FN_CURLIB; // all paths are relative from here
63056305
mysql_data_home_buff[1]=0;
6306-
strmake(opt_plugin_dir, get_relative_path(LIBDIR),
6307-
sizeof(opt_plugin_dir) - 1);
6308-
opt_plugin_dir_ptr= opt_plugin_dir;
63096306

63106307
/* Replication parameters */
63116308
master_user= (char*) "test";
@@ -7229,6 +7226,9 @@ static void fix_paths(void)
72297226
(void) my_load_path(mysql_home,mysql_home,""); // Resolve current dir
72307227
(void) my_load_path(mysql_real_data_home,mysql_real_data_home,mysql_home);
72317228
(void) my_load_path(pidfile_name,pidfile_name,mysql_real_data_home);
7229+
strmake(opt_plugin_dir, get_relative_path(LIBDIR),
7230+
sizeof(opt_plugin_dir) - 1);
7231+
opt_plugin_dir_ptr= opt_plugin_dir;
72327232
(void) my_load_path(opt_plugin_dir, opt_plugin_dir_ptr, mysql_home);
72337233

72347234
char *sharedir=get_relative_path(SHAREDIR);

sql/table.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,10 @@ int closefrm(register TABLE *table)
10741074
for (idx= table->s->keys; idx; idx--, key_info++)
10751075
{
10761076
if (key_info->flags & HA_USES_PARSER)
1077+
{
10771078
plugin_unlock(key_info->parser);
1079+
key_info->flags= 0;
1080+
}
10781081
}
10791082
my_free((char*) table->alias, MYF(MY_ALLOW_ZERO_PTR));
10801083
table->alias= 0;

0 commit comments

Comments
 (0)