mirror of
https://github.com/MariaDB/server.git
synced 2026-02-15 15:18:41 +01:00
commit 394d0712d3d46a87a8063e14e998e9c22336e3a6
Author: Anca Agape <anca@fb.com>
Date: Thu Jul 27 15:43:07 2017 -0700
Fix rpl.rpl_4threads_deadlock test broken by D5005670
Summary:
In D5005670 in fill_fields_processlist() function we introduced a point
where we were trying to take the LOCK_thd_data before the
synchronization point used by test
processlist_after_LOCK_thd_count_before_LOCK_thd_data. This was
happening in get_attached_srv_session() function called. Replaced this
with get_attached_srv_session_safe() and moved it after lock is aquired.
Reviewed By: tianx
Differential Revision: D5505992
fbshipit-source-id: bc53924
30 lines
700 B
Text
30 lines
700 B
Text
drop table if exists t;
|
|
create table t (
|
|
a int,
|
|
b int,
|
|
c varchar(12249) collate latin1_bin,
|
|
d datetime,
|
|
e int,
|
|
f int,
|
|
g blob,
|
|
h int,
|
|
i int,
|
|
key (b,e),
|
|
key (h,b)
|
|
) engine=rocksdb
|
|
partition by linear hash (i) partitions 8 ;
|
|
insert into t values (1,1,'a',now(),1,1,'a',1,1);
|
|
insert into t values (1,1,'a',now(),1,1,'a',1,1);
|
|
insert into t values (1,1,'a',now(),1,1,'a',1,1);
|
|
insert into t values (1,1,'a',now(),1,1,'a',1,1);
|
|
insert into t values (1,1,'a',now(),1,1,'a',1,1);
|
|
insert into t values (1,1,'a',now(),1,1,'a',1,1);
|
|
insert into t values (1,1,'a',now(),1,1,'a',1,1);
|
|
insert into t values (1,1,'a',now(),1,1,'a',1,1);
|
|
select i from t group by h;
|
|
i
|
|
1
|
|
select i from t group by h;
|
|
i
|
|
1
|
|
drop table t;
|