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
c26db934
Commit
c26db934
authored
Aug 31, 2001
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql
into mysql.sashanet.com:/home/sasha/src/bk/mysql
parents
821f51ab
ab862785
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
+37
-0
mysql-test/r/rpl_get_lock.result
mysql-test/r/rpl_get_lock.result
+4
-0
mysql-test/t/rpl_get_lock.test
mysql-test/t/rpl_get_lock.test
+16
-0
sql/item_func.cc
sql/item_func.cc
+17
-0
No files found.
mysql-test/r/rpl_get_lock.result
0 → 100644
View file @
c26db934
get_lock("lock",3)
1
n
1
mysql-test/t/rpl_get_lock.test
0 → 100644
View file @
c26db934
source
include
/
master
-
slave
.
inc
;
connection
master
;
create
table
t1
(
n
int
);
insert
into
t1
values
(
get_lock
(
"lock"
,
2
));
dirty_close
master
;
connection
master1
;
save_master_pos
;
connection
slave
;
sync_with_master
;
select
get_lock
(
"lock"
,
3
);
select
*
from
t1
;
connection
master1
;
drop
table
t1
;
save_master_pos
;
connection
slave
;
sync_with_master
;
sql/item_func.cc
View file @
c26db934
...
@@ -1399,6 +1399,23 @@ void item_user_lock_free(void)
...
@@ -1399,6 +1399,23 @@ void item_user_lock_free(void)
void
item_user_lock_release
(
ULL
*
ull
)
void
item_user_lock_release
(
ULL
*
ull
)
{
{
ull
->
locked
=
0
;
ull
->
locked
=
0
;
if
(
mysql_bin_log
.
is_open
())
{
THD
*
thd
=
current_thd
;
int
save_errno
;
char
buf
[
256
];
String
tmp
(
buf
,
sizeof
(
buf
));
tmp
.
length
(
0
);
tmp
.
append
(
"SELECT release_lock(
\"
"
);
tmp
.
append
(
ull
->
key
,
ull
->
key_length
);
tmp
.
append
(
"
\"
)"
);
save_errno
=
thd
->
net
.
last_errno
;
thd
->
net
.
last_errno
=
0
;
thd
->
query_length
=
tmp
.
length
();
Query_log_event
qev
(
thd
,
tmp
.
ptr
());
mysql_bin_log
.
write
(
&
qev
);
thd
->
net
.
last_errno
=
save_errno
;
}
if
(
--
ull
->
count
)
if
(
--
ull
->
count
)
pthread_cond_signal
(
&
ull
->
cond
);
pthread_cond_signal
(
&
ull
->
cond
);
else
else
...
...
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