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
33c05ce9
Commit
33c05ce9
authored
Nov 23, 2004
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enabling control of query cache for ndb
parent
1d981111
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+12
-1
sql/set_var.cc
sql/set_var.cc
+6
-0
sql/sql_class.h
sql/sql_class.h
+1
-0
No files found.
sql/ha_ndbcluster.cc
View file @
33c05ce9
...
...
@@ -3004,7 +3004,7 @@ int ha_ndbcluster::external_lock(THD *thd, int lock_type)
m_transaction_on
=
FALSE
;
else
m_transaction_on
=
thd
->
variables
.
ndb_use_transactions
;
//
m_use_local_query_cache= thd->variables.ndb_use_local_query_cache;
m_use_local_query_cache
=
thd
->
variables
.
ndb_use_local_query_cache
;
m_active_trans
=
thd
->
transaction
.
all
.
ndb_tid
?
(
NdbConnection
*
)
thd
->
transaction
.
all
.
ndb_tid
:
...
...
sql/mysqld.cc
View file @
33c05ce9
...
...
@@ -2227,7 +2227,11 @@ extern "C" pthread_handler_decl(handle_shutdown,arg)
#endif
const
char
*
load_default_groups
[]
=
{
"mysqld"
,
"server"
,
MYSQL_BASE_VERSION
,
0
,
0
};
const
char
*
load_default_groups
[]
=
{
#ifdef HAVE_NDBCLUSTER_DB
"mysql_cluster"
,
#endif
"mysqld"
,
"server"
,
MYSQL_BASE_VERSION
,
0
,
0
};
bool
open_log
(
MYSQL_LOG
*
log
,
const
char
*
hostname
,
const
char
*
opt_name
,
const
char
*
extension
,
...
...
@@ -3950,6 +3954,7 @@ enum options_mysqld
OPT_INNODB
,
OPT_ISAM
,
OPT_NDBCLUSTER
,
OPT_NDB_CONNECTSTRING
,
OPT_NDB_USE_EXACT_COUNT
,
OPT_NDB_FORCE_SEND
,
OPT_NDB_AUTOINCREMENT_PREFETCH_SZ
,
OPT_NDB_USE_LOCAL_QUERY_CACHE
,
OPT_SKIP_SAFEMALLOC
,
OPT_TEMP_POOL
,
OPT_TX_ISOLATION
,
OPT_SKIP_STACK_TRACE
,
OPT_SKIP_SYMLINKS
,
...
...
@@ -4409,6 +4414,12 @@ Disable with --skip-ndbcluster (will save memory).",
(
gptr
*
)
&
global_system_variables
.
ndb_use_exact_count
,
(
gptr
*
)
&
global_system_variables
.
ndb_use_exact_count
,
0
,
GET_BOOL
,
OPT_ARG
,
1
,
0
,
0
,
0
,
0
,
0
},
{
"ndb_use_local_query_cache"
,
OPT_NDB_USE_LOCAL_QUERY_CACHE
,
"Use local query cache, note that this cache will _not_ "
"be invalidated if data is updated through other mysql servers"
,
(
gptr
*
)
&
global_system_variables
.
ndb_use_local_query_cache
,
(
gptr
*
)
&
global_system_variables
.
ndb_use_local_query_cache
,
0
,
GET_BOOL
,
OPT_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#endif
{
"new"
,
'n'
,
"Use very new possible 'unsafe' functions."
,
(
gptr
*
)
&
global_system_variables
.
new_mode
,
...
...
sql/set_var.cc
View file @
33c05ce9
...
...
@@ -371,6 +371,9 @@ sys_var_thd_bool
sys_ndb_use_exact_count
(
"ndb_use_exact_count"
,
&
SV
::
ndb_use_exact_count
);
sys_var_thd_bool
sys_ndb_use_local_query_cache
(
"ndb_use_local_query_cache"
,
&
SV
::
ndb_use_local_query_cache
);
sys_var_thd_bool
sys_ndb_use_transactions
(
"ndb_use_transactions"
,
&
SV
::
ndb_use_transactions
);
// ndb server global variable settings
...
...
@@ -634,6 +637,7 @@ sys_var *sys_variables[]=
&
sys_ndb_autoincrement_prefetch_sz
,
&
sys_ndb_force_send
,
&
sys_ndb_use_exact_count
,
&
sys_ndb_use_local_query_cache
,
&
sys_ndb_use_transactions
,
#endif
&
sys_unique_checks
,
...
...
@@ -801,6 +805,8 @@ struct show_var_st init_vars[]= {
(
char
*
)
&
sys_ndb_autoincrement_prefetch_sz
,
SHOW_SYS
},
{
sys_ndb_force_send
.
name
,
(
char
*
)
&
sys_ndb_force_send
,
SHOW_SYS
},
{
sys_ndb_use_exact_count
.
name
,(
char
*
)
&
sys_ndb_use_exact_count
,
SHOW_SYS
},
{
sys_ndb_use_local_query_cache
.
name
,
(
char
*
)
&
sys_ndb_use_local_query_cache
,
SHOW_SYS
},
{
sys_ndb_use_transactions
.
name
,(
char
*
)
&
sys_ndb_use_transactions
,
SHOW_SYS
},
#endif
{
sys_net_buffer_length
.
name
,(
char
*
)
&
sys_net_buffer_length
,
SHOW_SYS
},
...
...
sql/sql_class.h
View file @
33c05ce9
...
...
@@ -403,6 +403,7 @@ struct system_variables
ulong
ndb_autoincrement_prefetch_sz
;
my_bool
ndb_force_send
;
my_bool
ndb_use_exact_count
;
my_bool
ndb_use_local_query_cache
;
my_bool
ndb_use_transactions
;
#endif
/* HAVE_NDBCLUSTER_DB */
my_bool
old_passwords
;
...
...
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