Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
63e7004b
Commit
63e7004b
authored
Apr 26, 2010
by
Horst.Hunger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport of patch for blckhole plugin (47748) to trunk-bugfixing.
parent
fca2aa6a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
4 deletions
+62
-4
mysql-test/include/have_blackhole_plugin.inc
mysql-test/include/have_blackhole_plugin.inc
+5
-0
mysql-test/r/blackhole_plugin.result
mysql-test/r/blackhole_plugin.result
+15
-0
mysql-test/t/blackhole_plugin-master.opt
mysql-test/t/blackhole_plugin-master.opt
+1
-0
mysql-test/t/blackhole_plugin.test
mysql-test/t/blackhole_plugin.test
+22
-0
storage/blackhole/Makefile.am
storage/blackhole/Makefile.am
+19
-4
No files found.
mysql-test/include/have_blackhole_plugin.inc
0 → 100644
View file @
63e7004b
if
(
`select plugin_library IS NULL from information_schema.plugins where plugin_name LIKE '%blackhole%'`
)
{
--
skip
blackhole
plugin
not
available
;
}
mysql-test/r/blackhole_plugin.result
0 → 100644
View file @
63e7004b
CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
Warnings:
Warning 1286 Unknown storage engine 'BLACKHOLE'
Warning 1266 Using storage engine MyISAM for table 't1'
DROP TABLE t1;
INSTALL PLUGIN blackhole SONAME 'ha_blackhole.so';
INSTALL PLUGIN BLACKHOLE SONAME 'ha_blackhole.so';
ERROR HY000: Function 'BLACKHOLE' already exists
UNINSTALL PLUGIN blackhole;
INSTALL PLUGIN blackhole SONAME 'ha_blackhole.so';
CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
DROP TABLE t1;
UNINSTALL PLUGIN blackhole;
UNINSTALL PLUGIN blackhole;
ERROR 42000: PLUGIN blackhole does not exist
mysql-test/t/blackhole_plugin-master.opt
0 → 100644
View file @
63e7004b
--plugin_dir=../storage/blackhole/.libs
mysql-test/t/blackhole_plugin.test
0 → 100644
View file @
63e7004b
--
source
include
/
not_windows
.
inc
--
source
include
/
have_blackhole_plugin
.
inc
CREATE
TABLE
t1
(
a
int
)
ENGINE
=
BLACKHOLE
;
DROP
TABLE
t1
;
eval
INSTALL
PLUGIN
blackhole
SONAME
'ha_blackhole.so'
;
--
error
1125
eval
INSTALL
PLUGIN
BLACKHOLE
SONAME
'ha_blackhole.so'
;
UNINSTALL
PLUGIN
blackhole
;
eval
INSTALL
PLUGIN
blackhole
SONAME
'ha_blackhole.so'
;
CREATE
TABLE
t1
(
a
int
)
ENGINE
=
BLACKHOLE
;
DROP
TABLE
t1
;
UNINSTALL
PLUGIN
blackhole
;
--
error
ER_SP_DOES_NOT_EXIST
UNINSTALL
PLUGIN
blackhole
;
storage/blackhole/Makefile.am
View file @
63e7004b
# Copyright (C) 200
6 MySQL AB
#
# Copyright (C) 200
5-2006 MySQL AB, 2009 Sun Microsystems, Inc.
#
All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
...
...
@@ -50,11 +50,22 @@ libblackhole_a_SOURCES= ha_blackhole.cc
EXTRA_DIST
=
CMakeLists.txt plug.in
if
HAVE_DTRACE_DASH_G
# The object for static and dynamic linking of blackhole differ
# For static linkage of blackhole to mysqld
libblackhole_a_LIBADD
=
probes_mysql.o
libblackhole_a_DEPENDENCIES
=
probes_mysql.o dtrace_files dtrace_providers
CLEANFILES
=
probes_mysql.o dtrace_files dtrace_providers
DTRACEFILES
=
libblackhole_a-ha_blackhole.o
# For blackhole as shared library
ha_blackhole_la_LIBADD
=
probes_sh_mysql.o
# Hack: We "depend" on ".libs/" but have no rule for it,
# but it is created as a byproduct of the ".lo"
DTRACESHAREDDEPS
=
ha_blackhole_la-ha_blackhole.lo
DTRACESHAREDFILES
=
ha_blackhole_la-ha_blackhole.o
DTRACEPROVIDER
=
probes_mysql.d
ha_blackhole_la_DEPENDENCIES
=
probes_sh_mysql.o
$(DTRACESHAREDDEPS)
dtrace_providers
CLEANFILES
=
$(DTRACEPROVIDERS)
dtrace_files dtrace_providers
$(DTRACESHAREDDEPS)
DTRACEFILES
=
libblackhole_a-ha_blackhole.o
dtrace_files
:
echo
$(DTRACEFILES)
>
$@
...
...
@@ -65,8 +76,12 @@ probes_mysql.d:
$(CP)
$(top_srcdir)
/include/probes_mysql.d.base probes_mysql.d
echo
timestamp
>
dtrace_sources
probes_sh_mysql.o
:
$(DTRACEPROVIDER) $(DTRACESHAREDDEPS)
$(DTRACE)
$(DTRACEFLAGS)
-G
-s
$(DTRACEPROVIDER)
$(DTRACESHAREDFILES)
-o
$@
$(CP)
$(DTRACESHAREDFILES)
.libs
probes_mysql.o
:
$(DTRACEPROVIDER) $(DTRACEFILES)
$(DTRACE)
$(DTRACEFLAGS)
-G
-s
$(DTRACEPROVIDER)
$(DTRACEFILES)
-o
$@
endif
# Don't update the files from bitkeeper
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment