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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0532a847
Commit
0532a847
authored
May 19, 2013
by
Andrew McDonnell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for compilation when DEBUG_VERBOSE and RETAIN_INT_LATCH_COMPATIBILITY not defined
parent
8c39cbd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
storage/oqgraph/ha_oqgraph.cc
storage/oqgraph/ha_oqgraph.cc
+11
-6
No files found.
storage/oqgraph/ha_oqgraph.cc
View file @
0532a847
...
...
@@ -44,11 +44,11 @@
#include "my_dbug.h"
// Uncomment this for extra debug, but expect a performance hit in large queries
#define VERBOSE_DEBUG
//
#define VERBOSE_DEBUG
#ifdef VERBOSE_DEBUG
#else
#undef DBUG_PRINT
#define DBUG_PRINT(x)
#define DBUG_PRINT(x
...
)
#endif
#define OQGRAPH_STATS_UPDATE_THRESHOLD 10
...
...
@@ -169,7 +169,6 @@ statistic_increment(table->in_use->status_var.X, &LOCK_status)
static
bool
oqgraph_init_done
=
0
;
static
handler
*
oqgraph_create_handler
(
handlerton
*
hton
,
TABLE_SHARE
*
table
,
MEM_ROOT
*
mem_root
)
{
...
...
@@ -245,9 +244,8 @@ static int error_code(int res)
* =================================
*
The latch may be a varchar of any length, however if it is too short,
then some of the OQGRAPH graph operations will not be able to be executed.
A size of 32 seems reasonable at this point in time.
The latch may be a varchar of any length, however if it is too short to
hold the longest latch value, table creation is aborted.
CREATE TABLE foo (
latch VARCHAR(32) NULL,
...
...
@@ -1198,10 +1196,13 @@ static struct st_mysql_show_var oqgraph_status[]=
{
0
,
0
,
SHOW_UNDEF
}
};
#ifdef RETAIN_INT_LATCH_COMPATIBILITY
static
struct
st_mysql_sys_var
*
oqgraph_sysvars
[]
=
{
MYSQL_SYSVAR
(
allow_create_integer_latch
),
0
};
#endif
maria_declare_plugin
(
oqgraph
)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
...
...
@@ -1214,7 +1215,11 @@ maria_declare_plugin(oqgraph)
oqgraph_fini
,
/* Plugin Deinit */
0x0300
,
/* Version: 3s.0 */
oqgraph_status
,
/* status variables */
#ifdef RETAIN_INT_LATCH_COMPATIBILITY
oqgraph_sysvars
,
/* system variables */
#else
NULL
,
#endif
"3.0"
,
MariaDB_PLUGIN_MATURITY_BETA
}
...
...
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