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
d063c3e9
Commit
d063c3e9
authored
Nov 14, 2009
by
Antony T Curtis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge fix for bug monty found in ha_federatedx::close() method
parent
cfb4251e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
storage/federatedx/ha_federatedx.cc
storage/federatedx/ha_federatedx.cc
+18
-5
No files found.
storage/federatedx/ha_federatedx.cc
View file @
d063c3e9
...
...
@@ -1786,7 +1786,7 @@ int ha_federatedx::open(const char *name, int mode, uint test_if_locked)
int
ha_federatedx
::
close
(
void
)
{
int
retval
,
error
;
THD
*
thd
=
current_thd
;
THD
*
thd
;
DBUG_ENTER
(
"ha_federatedx::close"
);
/* free the result set */
...
...
@@ -1794,13 +1794,26 @@ int ha_federatedx::close(void)
retval
=
free_result
();
/* Disconnect from mysql */
if
(
txn
||
thd
&&
(
txn
=
get_txn
(
thd
,
true
)))
if
(
!
(
thd
=
current_thd
)
||
!
(
txn
=
get_txn
(
thd
,
true
)))
{
federatedx_txn
tmp_txn
;
tmp_txn
.
release
(
&
io
);
DBUG_ASSERT
(
io
==
NULL
);
if
((
error
=
free_share
(
&
tmp_txn
,
share
)))
retval
=
error
;
}
else
{
txn
->
release
(
&
io
);
DBUG_ASSERT
(
io
==
NULL
);
DBUG_ASSERT
(
io
==
NULL
);
if
((
error
=
free_share
(
txn
,
share
)))
retval
=
error
;
if
((
error
=
free_share
(
txn
,
share
)))
retval
=
error
;
}
DBUG_RETURN
(
retval
);
}
...
...
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