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
e78712d4
Commit
e78712d4
authored
Sep 13, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: remove dead code
parent
0267cad5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
60 deletions
+0
-60
storage/federated/ha_federated.cc
storage/federated/ha_federated.cc
+0
-60
No files found.
storage/federated/ha_federated.cc
View file @
e78712d4
...
@@ -3289,66 +3289,6 @@ int ha_federated::external_lock(THD *thd, int lock_type)
...
@@ -3289,66 +3289,6 @@ int ha_federated::external_lock(THD *thd, int lock_type)
int
error
=
0
;
int
error
=
0
;
DBUG_ENTER
(
"ha_federated::external_lock"
);
DBUG_ENTER
(
"ha_federated::external_lock"
);
/*
Support for transactions disabled until WL#2952 fixes it.
*/
#ifdef XXX_SUPERCEDED_BY_WL2952
if
(
lock_type
!=
F_UNLCK
)
{
ha_federated
*
trx
=
(
ha_federated
*
)
thd_get_ha_data
(
thd
,
ht
);
DBUG_PRINT
(
"info"
,(
"federated not lock F_UNLCK"
));
if
(
!
(
thd
->
options
&
(
OPTION_NOT_AUTOCOMMIT
|
OPTION_BEGIN
)))
{
DBUG_PRINT
(
"info"
,(
"federated autocommit"
));
/*
This means we are doing an autocommit
*/
error
=
connection_autocommit
(
TRUE
);
if
(
error
)
{
DBUG_PRINT
(
"info"
,
(
"error setting autocommit TRUE: %d"
,
error
));
DBUG_RETURN
(
error
);
}
trans_register_ha
(
thd
,
FALSE
,
ht
);
}
else
{
DBUG_PRINT
(
"info"
,(
"not autocommit"
));
if
(
!
trx
)
{
/*
This is where a transaction gets its start
*/
error
=
connection_autocommit
(
FALSE
);
if
(
error
)
{
DBUG_PRINT
(
"info"
,
(
"error setting autocommit FALSE: %d"
,
error
));
DBUG_RETURN
(
error
);
}
thd_set_ha_data
(
thd
,
ht
,
this
);
trans_register_ha
(
thd
,
TRUE
,
ht
);
/*
Send a lock table to the remote end.
We do not support this at the moment
*/
if
(
thd
->
options
&
(
OPTION_TABLE_LOCK
))
{
DBUG_PRINT
(
"info"
,
(
"We do not support lock table yet"
));
}
}
else
{
ha_federated
*
ptr
;
for
(
ptr
=
trx
;
ptr
;
ptr
=
ptr
->
trx_next
)
if
(
ptr
==
this
)
break
;
else
if
(
!
ptr
->
trx_next
)
ptr
->
trx_next
=
this
;
}
}
}
#endif
/* XXX_SUPERCEDED_BY_WL2952 */
table_will_be_deleted
=
FALSE
;
table_will_be_deleted
=
FALSE
;
DBUG_RETURN
(
error
);
DBUG_RETURN
(
error
);
}
}
...
...
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