[MDEV-6191] row_search_for_mysql comment and code consistency about isolation level and gap locks Created: 2014-04-30 Updated: 2014-07-04 Resolved: 2014-07-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.37 |
| Fix Version/s: | 5.5.39 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Daniel Black | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
mariadb-5.5/storage/xtradb/row/row0sel.c line 4137
I was getting really confused about the comment and its relation to the code and I've come to the conclusion that the comment should say "this session is not using a REPEATABLE READ" and perhaps the condition could be isolation_level < TRX_ISO_REPEATABLE_READ to match. Of course I've looked at this too long and just may be wrong. |
| Comments |
| Comment by Elena Stepanova [ 2014-04-30 ] |
|
The comment looks okay to me... I mean, for total accuracy, it could have said "using a READ (UN)COMMITTED isolation level", but this "UN" is kind of obvious. |
| Comment by Jan Lindström (Inactive) [ 2014-05-10 ] |
|
Idea with that code is that if innodb_locks_unsafe_for_binlog option is used or this session is using |
| Comment by Jan Lindström (Inactive) [ 2014-07-04 ] |
|
revno: 4223 |