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
3f8a66cb
Commit
3f8a66cb
authored
Mar 15, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merged WL#2269 to mysql-5.0
parents
021f8d21
2bdd710d
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
949 additions
and
163 deletions
+949
-163
mysql-test/r/ndb_cache2.result
mysql-test/r/ndb_cache2.result
+474
-44
mysql-test/t/ndb_cache2.test
mysql-test/t/ndb_cache2.test
+257
-23
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
+2
-4
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+208
-86
sql/ha_ndbcluster.h
sql/ha_ndbcluster.h
+4
-1
sql/set_var.cc
sql/set_var.cc
+4
-4
sql/sql_class.h
sql/sql_class.h
+0
-1
No files found.
mysql-test/r/ndb_cache2.result
View file @
3f8a66cb
This diff is collapsed.
Click to expand it.
mysql-test/t/ndb_cache2.test
View file @
3f8a66cb
This diff is collapsed.
Click to expand it.
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
View file @
3f8a66cb
...
...
@@ -2449,14 +2449,14 @@ void Dbacc::execACC_COMMITREQ(Signal* signal)
operationRecPtr
.
p
->
transactionstate
=
IDLE
;
operationRecPtr
.
p
->
operation
=
ZUNDEFINED_OP
;
if
(
Toperation
!=
ZREAD
){
rootfragrecptr
.
i
=
fragrecptr
.
p
->
myroot
;
ptrCheckGuard
(
rootfragrecptr
,
crootfragmentsize
,
rootfragmentrec
);
rootfragrecptr
.
p
->
m_commit_count
++
;
if
(
Toperation
!=
ZINSERT
)
{
if
(
Toperation
!=
ZDELETE
)
{
return
;
}
else
{
jam
();
rootfragrecptr
.
i
=
fragrecptr
.
p
->
myroot
;
ptrCheckGuard
(
rootfragrecptr
,
crootfragmentsize
,
rootfragmentrec
);
rootfragrecptr
.
p
->
noOfElements
--
;
fragrecptr
.
p
->
slack
+=
operationRecPtr
.
p
->
insertDeleteLen
;
if
(
fragrecptr
.
p
->
slack
>
fragrecptr
.
p
->
slackCheck
)
{
...
...
@@ -2476,8 +2476,6 @@ void Dbacc::execACC_COMMITREQ(Signal* signal)
}
//if
}
else
{
jam
();
/* EXPAND PROCESS HANDLING */
rootfragrecptr
.
i
=
fragrecptr
.
p
->
myroot
;
ptrCheckGuard
(
rootfragrecptr
,
crootfragmentsize
,
rootfragmentrec
);
rootfragrecptr
.
p
->
noOfElements
++
;
fragrecptr
.
p
->
slack
-=
operationRecPtr
.
p
->
insertDeleteLen
;
if
(
fragrecptr
.
p
->
slack
>=
(
1u
<<
31
))
{
...
...
sql/ha_ndbcluster.cc
View file @
3f8a66cb
This diff is collapsed.
Click to expand it.
sql/ha_ndbcluster.h
View file @
3f8a66cb
...
...
@@ -61,6 +61,7 @@ typedef struct st_ndbcluster_share {
pthread_mutex_t
mutex
;
char
*
table_name
;
uint
table_name_length
,
use_count
;
uint
commit_count_lock
;
ulonglong
commit_count
;
}
NDB_SHARE
;
...
...
@@ -374,6 +375,7 @@ class Thd_ndb
NdbTransaction
*
all
;
NdbTransaction
*
stmt
;
int
error
;
List
<
NDB_SHARE
>
changed_tables
;
};
class
ha_ndbcluster
:
public
handler
...
...
@@ -562,7 +564,7 @@ class ha_ndbcluster: public handler
int
write_ndb_file
();
int
check_ndb_connection
();
int
check_ndb_connection
(
THD
*
thd
=
current_thd
);
void
set_rec_per_key
();
void
records_update
();
...
...
@@ -611,6 +613,7 @@ class ha_ndbcluster: public handler
ha_rows
m_rows_to_insert
;
ha_rows
m_rows_inserted
;
ha_rows
m_bulk_insert_rows
;
ha_rows
m_rows_changed
;
bool
m_bulk_insert_not_flushed
;
ha_rows
m_ops_pending
;
bool
m_skip_auto_increment
;
...
...
sql/set_var.cc
View file @
3f8a66cb
...
...
@@ -413,7 +413,7 @@ sys_engine_condition_pushdown("engine_condition_pushdown",
#ifdef HAVE_NDBCLUSTER_DB
/* ndb thread specific variable settings */
sys_var_thd_ulong
sys_var_thd_ulong
sys_ndb_autoincrement_prefetch_sz
(
"ndb_autoincrement_prefetch_sz"
,
&
SV
::
ndb_autoincrement_prefetch_sz
);
sys_var_thd_bool
...
...
@@ -422,7 +422,8 @@ 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_transactions
(
"ndb_use_transactions"
,
&
SV
::
ndb_use_transactions
);
sys_var_long_ptr
sys_ndb_cache_check_time
(
"ndb_cache_check_time"
,
&
ndb_cache_check_time
);
sys_var_long_ptr
sys_ndb_cache_check_time
(
"ndb_cache_check_time"
,
&
ndb_cache_check_time
);
#endif
/* Time/date/datetime formats */
...
...
@@ -702,10 +703,10 @@ sys_var *sys_variables[]=
&
sys_engine_condition_pushdown
,
#ifdef HAVE_NDBCLUSTER_DB
&
sys_ndb_autoincrement_prefetch_sz
,
&
sys_ndb_cache_check_time
,
&
sys_ndb_force_send
,
&
sys_ndb_use_exact_count
,
&
sys_ndb_use_transactions
,
&
sys_ndb_cache_check_time
,
#endif
&
sys_unique_checks
,
&
sys_updatable_views_with_limit
,
...
...
@@ -1298,7 +1299,6 @@ static int check_max_delayed_threads(THD *thd, set_var *var)
return
0
;
}
static
void
fix_max_connections
(
THD
*
thd
,
enum_var_type
type
)
{
#ifndef EMBEDDED_LIBRARY
...
...
sql/sql_class.h
View file @
3f8a66cb
...
...
@@ -1151,7 +1151,6 @@ class THD :public ilink,
table_map
used_tables
;
USER_CONN
*
user_connect
;
CHARSET_INFO
*
db_charset
;
List
<
TABLE
>
temporary_tables_should_be_free
;
// list of temporary tables
/*
FIXME: this, and some other variables like 'count_cuted_fields'
maybe should be statement/cursor local, that is, moved to Statement
...
...
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