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
aacaaf59
Commit
aacaaf59
authored
Nov 07, 2000
by
tim@threads.polyesthetic.msg
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql
into threads.polyesthetic.msg:/usr/local/src/my/work
parents
fd17c119
96b8ab70
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
sql/ha_berkeley.cc
sql/ha_berkeley.cc
+2
-2
sql/handler.cc
sql/handler.cc
+4
-3
sql/sql_parse.cc
sql/sql_parse.cc
+1
-1
No files found.
sql/ha_berkeley.cc
View file @
aacaaf59
...
...
@@ -1370,8 +1370,8 @@ int ha_berkeley::external_lock(THD *thd, int lock_type)
current_row
.
data
=
0
;
if
(
!--
thd
->
transaction
.
bdb_lock_count
)
{
if
(
thd
->
transaction
.
bdb_tid
&&
(
thd
->
options
&
(
OPTION_AUTO_COMMIT
|
OPTION_BEGIN
)
))
if
(
thd
->
transaction
.
bdb_tid
&&
(
thd
->
options
&
OPTION_AUTO_COMMIT
)
&&
!
(
thd
->
options
&
OPTION_BEGIN
))
{
/*
F_UNLOCK is done without a transaction commit / rollback. This
...
...
sql/handler.cc
View file @
aacaaf59
...
...
@@ -178,7 +178,8 @@ int ha_autocommit_or_rollback(THD *thd, int error)
{
DBUG_ENTER
(
"ha_autocommit_or_rollback"
);
#if defined(HAVE_BERKELEY_DB) || defined(HAVE_INNOBASE_DB)
if
((
thd
->
options
&
OPTION_AUTO_COMMIT
)
&&
!
thd
->
locked_tables
)
if
((
thd
->
options
&
OPTION_AUTO_COMMIT
)
&&
!
(
thd
->
options
&
OPTION_BEGIN
)
&&
!
thd
->
locked_tables
)
{
if
(
!
error
)
{
...
...
@@ -195,7 +196,7 @@ int ha_autocommit_or_rollback(THD *thd, int error)
int
ha_commit
(
THD
*
thd
)
{
int
error
=
0
;
DBUG_ENTER
(
"commit"
);
DBUG_ENTER
(
"
ha_
commit"
);
#ifdef HAVE_BERKELEY_DB
if
(
thd
->
transaction
.
bdb_tid
)
{
...
...
@@ -224,7 +225,7 @@ int ha_commit(THD *thd)
int
ha_rollback
(
THD
*
thd
)
{
int
error
=
0
;
DBUG_ENTER
(
"
commit
"
);
DBUG_ENTER
(
"
ha_rollback
"
);
#ifdef HAVE_BERKELEY_DB
if
(
thd
->
transaction
.
bdb_tid
)
{
...
...
sql/sql_parse.cc
View file @
aacaaf59
...
...
@@ -1536,7 +1536,7 @@ mysql_execute_command(void)
/* Check if auto_commit mode changed */
if
((
org_options
^
lex
->
options
)
&
OPTION_AUTO_COMMIT
)
{
if
(
org_options
&
OPTION_AUTO_COMMIT
)
if
(
!
org_options
&
OPTION_AUTO_COMMIT
)
{
/* We changed to auto_commit mode */
thd
->
options
&=
~
OPTION_BEGIN
;
...
...
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