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
f8c440d2
Commit
f8c440d2
authored
Jun 22, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
automerge
parents
cafcd709
26d382f6
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
3 deletions
+28
-3
mysql-test/r/innodb_bug45357.result
mysql-test/r/innodb_bug45357.result
+7
-0
mysql-test/t/innodb_bug45357.test
mysql-test/t/innodb_bug45357.test
+10
-0
mysys/hash.c
mysys/hash.c
+1
-1
storage/innobase/btr/btr0cur.c
storage/innobase/btr/btr0cur.c
+1
-0
storage/innobase/include/trx0rseg.ic
storage/innobase/include/trx0rseg.ic
+1
-0
storage/innobase/row/row0mysql.c
storage/innobase/row/row0mysql.c
+7
-2
storage/innobase/trx/trx0rec.c
storage/innobase/trx/trx0rec.c
+1
-0
No files found.
mysql-test/r/innodb_bug45357.result
0 → 100644
View file @
f8c440d2
set session transaction isolation level read committed;
create table bug45357(a int, b int,key(b))engine=innodb;
insert into bug45357 values (25170,6122);
update bug45357 set a=1 where b=30131;
delete from bug45357 where b < 20996;
delete from bug45357 where b < 7001;
drop table bug45357;
mysql-test/t/innodb_bug45357.test
0 → 100644
View file @
f8c440d2
--
source
include
/
have_innodb
.
inc
set
session
transaction
isolation
level
read
committed
;
create
table
bug45357
(
a
int
,
b
int
,
key
(
b
))
engine
=
innodb
;
insert
into
bug45357
values
(
25170
,
6122
);
update
bug45357
set
a
=
1
where
b
=
30131
;
delete
from
bug45357
where
b
<
20996
;
delete
from
bug45357
where
b
<
7001
;
drop
table
bug45357
;
mysys/hash.c
View file @
f8c440d2
...
@@ -89,7 +89,7 @@ _my_hash_init(HASH *hash, uint growth_size, CHARSET_INFO *charset,
...
@@ -89,7 +89,7 @@ _my_hash_init(HASH *hash, uint growth_size, CHARSET_INFO *charset,
hash
->
flags
=
flags
;
hash
->
flags
=
flags
;
hash
->
charset
=
charset
;
hash
->
charset
=
charset
;
DBUG_RETURN
(
my_init_dynamic_array_ci
(
&
hash
->
array
,
DBUG_RETURN
(
my_init_dynamic_array_ci
(
&
hash
->
array
,
sizeof
(
HASH_LINK
),
size
,
0
));
sizeof
(
HASH_LINK
),
size
,
growth_size
));
}
}
...
...
storage/innobase/btr/btr0cur.c
View file @
f8c440d2
...
@@ -23,6 +23,7 @@ Created 10/16/1994 Heikki Tuuri
...
@@ -23,6 +23,7 @@ Created 10/16/1994 Heikki Tuuri
#include "btr0cur.ic"
#include "btr0cur.ic"
#endif
#endif
#include "mtr0log.h"
#include "page0page.h"
#include "page0page.h"
#include "rem0rec.h"
#include "rem0rec.h"
#include "rem0cmp.h"
#include "rem0cmp.h"
...
...
storage/innobase/include/trx0rseg.ic
View file @
f8c440d2
...
@@ -7,6 +7,7 @@ Created 3/26/1996 Heikki Tuuri
...
@@ -7,6 +7,7 @@ Created 3/26/1996 Heikki Tuuri
*******************************************************/
*******************************************************/
#include "srv0srv.h"
#include "srv0srv.h"
#include "mtr0log.h"
/**********************************************************************
/**********************************************************************
Gets a rollback segment header. */
Gets a rollback segment header. */
...
...
storage/innobase/row/row0mysql.c
View file @
f8c440d2
...
@@ -1529,9 +1529,14 @@ row_unlock_for_mysql(
...
@@ -1529,9 +1529,14 @@ row_unlock_for_mysql(
index
=
btr_pcur_get_btr_cur
(
clust_pcur
)
->
index
;
index
=
btr_pcur_get_btr_cur
(
clust_pcur
)
->
index
;
}
}
if
(
UNIV_UNLIKELY
(
!
(
index
->
type
&
DICT_CLUSTERED
)))
{
/* This is not a clustered index record. We
do not know how to unlock the record. */
goto
no_unlock
;
}
/* If the record has been modified by this
/* If the record has been modified by this
transaction, do not unlock it. */
transaction, do not unlock it. */
ut_a
(
index
->
type
&
DICT_CLUSTERED
);
if
(
index
->
trx_id_offset
)
{
if
(
index
->
trx_id_offset
)
{
rec_trx_id
=
trx_read_trx_id
(
rec
rec_trx_id
=
trx_read_trx_id
(
rec
...
@@ -1568,7 +1573,7 @@ row_unlock_for_mysql(
...
@@ -1568,7 +1573,7 @@ row_unlock_for_mysql(
prebuilt
->
select_lock_type
);
prebuilt
->
select_lock_type
);
}
}
}
}
no_unlock:
mtr_commit
(
&
mtr
);
mtr_commit
(
&
mtr
);
}
}
...
...
storage/innobase/trx/trx0rec.c
View file @
f8c440d2
...
@@ -23,6 +23,7 @@ Created 3/26/1996 Heikki Tuuri
...
@@ -23,6 +23,7 @@ Created 3/26/1996 Heikki Tuuri
#include "que0que.h"
#include "que0que.h"
#include "trx0purge.h"
#include "trx0purge.h"
#include "row0row.h"
#include "row0row.h"
#include "mtr0log.h"
/*=========== UNDO LOG RECORD CREATION AND DECODING ====================*/
/*=========== UNDO LOG RECORD CREATION AND DECODING ====================*/
...
...
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