Skip to content

Commit 1c00de5

Browse files
committed
split test for lock
we don't support cluster under windows related to #3047
1 parent 88043fd commit 1c00de5

File tree

4 files changed

+37
-7
lines changed

4 files changed

+37
-7
lines changed

test/test_316/model.bin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a:1:{i:0;a:75:{i:0;a:2:{s:8:"sphinxql";s:23:"create table a(iid int)";s:14:"total_affected";i:0;}i:1;a:2:{s:8:"sphinxql";s:23:"create table b(iid int)";s:14:"total_affected";i:0;}i:2;a:2:{s:8:"sphinxql";s:27:"insert into a values (1, 1)";s:14:"total_affected";i:1;}i:3;a:2:{s:8:"sphinxql";s:27:"insert into b values (1, 2)";s:14:"total_affected";i:1;}i:4;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"1";}}}i:5;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"2";}}}i:6;a:2:{s:8:"sphinxql";s:18:"lock tables a read";s:14:"total_affected";i:0;}i:7;a:3:{s:8:"sphinxql";s:27:"insert into a values (2, 1)";s:5:"errno";i:1064;s:5:"error";s:19:"table 'a' is locked";}i:8;a:2:{s:8:"sphinxql";s:27:"insert into b values (2, 2)";s:14:"total_affected";i:1;}i:9;a:3:{s:8:"sphinxql";s:29:"update a set iid=2 where id=1";s:5:"errno";i:1064;s:5:"error";s:24:"table a: table is locked";}i:10;a:2:{s:8:"sphinxql";s:29:"update b set iid=2 where id=1";s:14:"total_affected";i:1;}i:11;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"1";}}}i:12;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"2";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}}}i:13;a:2:{s:8:"sphinxql";s:13:"unlock tables";s:14:"total_affected";i:0;}i:14;a:2:{s:8:"sphinxql";s:27:"insert into a values (8, 1)";s:14:"total_affected";i:1;}i:15;a:2:{s:8:"sphinxql";s:27:"insert into b values (8, 2)";s:14:"total_affected";i:1;}i:16;a:2:{s:8:"sphinxql";s:29:"update a set iid=8 where id=1";s:14:"total_affected";i:1;}i:17;a:2:{s:8:"sphinxql";s:29:"update b set iid=8 where id=1";s:14:"total_affected";i:1;}i:18;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"8";}i:1;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"1";}}}i:19;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:3;s:4:"rows";a:3:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"8";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}i:2;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"2";}}}i:20;a:2:{s:8:"sphinxql";s:18:"lock tables a read";s:14:"total_affected";i:0;}i:21;a:3:{s:8:"sphinxql";s:27:"insert into a values (3, 1)";s:5:"errno";i:1064;s:5:"error";s:19:"table 'a' is locked";}i:22;a:2:{s:8:"sphinxql";s:27:"insert into b values (3, 2)";s:14:"total_affected";i:1;}i:23;a:3:{s:8:"sphinxql";s:29:"update a set iid=3 where id=1";s:5:"errno";i:1064;s:5:"error";s:24:"table a: table is locked";}i:24;a:2:{s:8:"sphinxql";s:29:"update b set iid=3 where id=1";s:14:"total_affected";i:1;}i:25;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"8";}i:1;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"1";}}}i:26;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:4;s:4:"rows";a:4:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"3";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}i:2;a:2:{s:2:"id";s:1:"3";s:3:"iid";s:1:"2";}i:3;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"2";}}}i:27;a:2:{s:8:"sphinxql";s:13:"unlock tables";s:14:"total_affected";i:0;}i:28;a:2:{s:8:"sphinxql";s:27:"insert into a values (4, 1)";s:14:"total_affected";i:1;}i:29;a:2:{s:8:"sphinxql";s:27:"insert into b values (4, 2)";s:14:"total_affected";i:1;}i:30;a:2:{s:8:"sphinxql";s:29:"update a set iid=4 where id=1";s:14:"total_affected";i:1;}i:31;a:2:{s:8:"sphinxql";s:29:"update b set iid=4 where id=1";s:14:"total_affected";i:1;}i:32;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:3;s:4:"rows";a:3:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"4";}i:1;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"1";}i:2;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"1";}}}i:33;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:5;s:4:"rows";a:5:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"4";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}i:2;a:2:{s:2:"id";s:1:"3";s:3:"iid";s:1:"2";}i:3;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"2";}i:4;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"2";}}}i:34;a:2:{s:8:"sphinxql";s:18:"lock tables a read";s:14:"total_affected";i:0;}i:35;a:3:{s:8:"sphinxql";s:10:"show locks";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:4:{s:4:"Type";s:2:"rt";s:4:"Name";s:1:"a";s:9:"Lock Type";s:4:"read";s:15:"Additional Info";s:8:"Count: 1";}}}i:36;a:3:{s:8:"sphinxql";s:27:"insert into a values (9, 1)";s:5:"errno";i:1064;s:5:"error";s:19:"table 'a' is locked";}i:37;a:2:{s:8:"sphinxql";s:27:"insert into b values (9, 2)";s:14:"total_affected";i:1;}i:38;a:3:{s:8:"sphinxql";s:29:"update a set iid=9 where id=1";s:5:"errno";i:1064;s:5:"error";s:24:"table a: table is locked";}i:39;a:2:{s:8:"sphinxql";s:29:"update b set iid=9 where id=1";s:14:"total_affected";i:1;}i:40;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:3;s:4:"rows";a:3:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"4";}i:1;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"1";}i:2;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"1";}}}i:41;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:6;s:4:"rows";a:6:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"9";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}i:2;a:2:{s:2:"id";s:1:"3";s:3:"iid";s:1:"2";}i:3;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"2";}i:4;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"2";}i:5;a:2:{s:2:"id";s:1:"9";s:3:"iid";s:1:"2";}}}i:42;a:3:{s:8:"sphinxql";s:9:"RECONNECT";s:5:"error";s:15:"reconnected ok!";s:5:"errno";i:0;}i:43;a:2:{s:8:"sphinxql";s:27:"insert into a values (5, 1)";s:14:"total_affected";i:1;}i:44;a:2:{s:8:"sphinxql";s:27:"insert into b values (5, 2)";s:14:"total_affected";i:1;}i:45;a:2:{s:8:"sphinxql";s:29:"update a set iid=5 where id=1";s:14:"total_affected";i:1;}i:46;a:2:{s:8:"sphinxql";s:29:"update b set iid=5 where id=1";s:14:"total_affected";i:1;}i:47;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:4;s:4:"rows";a:4:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"5";}i:1;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"1";}i:2;a:2:{s:2:"id";s:1:"5";s:3:"iid";s:1:"1";}i:3;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"1";}}}i:48;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:7;s:4:"rows";a:7:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"5";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}i:2;a:2:{s:2:"id";s:1:"3";s:3:"iid";s:1:"2";}i:3;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"2";}i:4;a:2:{s:2:"id";s:1:"5";s:3:"iid";s:1:"2";}i:5;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"2";}i:6;a:2:{s:2:"id";s:1:"9";s:3:"iid";s:1:"2";}}}i:49;a:2:{s:8:"sphinxql";s:27:"lock tables a read, b write";s:14:"total_affected";i:0;}i:50;a:3:{s:8:"sphinxql";s:13:"show warnings";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:5:"Level";s:7:"warning";s:4:"Code";s:4:"1000";s:7:"Message";s:30:"Write lock is not implemented.";}}}i:51;a:3:{s:8:"sphinxql";s:10:"show locks";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:4:{s:4:"Type";s:2:"rt";s:4:"Name";s:1:"a";s:9:"Lock Type";s:4:"read";s:15:"Additional Info";s:8:"Count: 1";}}}i:52;a:2:{s:8:"sphinxql";s:26:"lock tables a read, b read";s:14:"total_affected";i:0;}i:53;a:2:{s:8:"sphinxql";s:13:"show warnings";s:14:"total_affected";i:0;}i:54;a:3:{s:8:"sphinxql";s:10:"show locks";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:4:{s:4:"Type";s:2:"rt";s:4:"Name";s:1:"a";s:9:"Lock Type";s:4:"read";s:15:"Additional Info";s:8:"Count: 1";}i:1;a:4:{s:4:"Type";s:2:"rt";s:4:"Name";s:1:"b";s:9:"Lock Type";s:4:"read";s:15:"Additional Info";s:8:"Count: 1";}}}i:55;a:3:{s:8:"sphinxql";s:27:"insert into a values (6, 1)";s:5:"errno";i:1064;s:5:"error";s:19:"table 'a' is locked";}i:56;a:3:{s:8:"sphinxql";s:27:"insert into b values (6, 2)";s:5:"errno";i:1064;s:5:"error";s:19:"table 'b' is locked";}i:57;a:3:{s:8:"sphinxql";s:29:"update a set iid=6 where id=1";s:5:"errno";i:1064;s:5:"error";s:24:"table a: table is locked";}i:58;a:3:{s:8:"sphinxql";s:29:"update b set iid=6 where id=1";s:5:"errno";i:1064;s:5:"error";s:24:"table b: table is locked";}i:59;a:3:{s:8:"sphinxql";s:9:"RECONNECT";s:5:"error";s:15:"reconnected ok!";s:5:"errno";i:0;}i:60;a:2:{s:8:"sphinxql";s:27:"insert into a values (7, 1)";s:14:"total_affected";i:1;}i:61;a:2:{s:8:"sphinxql";s:27:"insert into b values (7, 2)";s:14:"total_affected";i:1;}i:62;a:2:{s:8:"sphinxql";s:29:"update a set iid=7 where id=1";s:14:"total_affected";i:1;}i:63;a:2:{s:8:"sphinxql";s:29:"update b set iid=7 where id=1";s:14:"total_affected";i:1;}i:64;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:5;s:4:"rows";a:5:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"7";}i:1;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"1";}i:2;a:2:{s:2:"id";s:1:"5";s:3:"iid";s:1:"1";}i:3;a:2:{s:2:"id";s:1:"7";s:3:"iid";s:1:"1";}i:4;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"1";}}}i:65;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:8;s:4:"rows";a:8:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"7";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}i:2;a:2:{s:2:"id";s:1:"3";s:3:"iid";s:1:"2";}i:3;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"2";}i:4;a:2:{s:2:"id";s:1:"5";s:3:"iid";s:1:"2";}i:5;a:2:{s:2:"id";s:1:"7";s:3:"iid";s:1:"2";}i:6;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"2";}i:7;a:2:{s:2:"id";s:1:"9";s:3:"iid";s:1:"2";}}}i:66;a:2:{s:8:"sphinxql";s:10:"show locks";s:10:"total_rows";i:0;}i:67;a:2:{s:8:"sphinxql";s:16:"create cluster c";s:14:"total_affected";i:0;}i:68;a:2:{s:8:"sphinxql";s:21:"alter cluster c add a";s:14:"total_affected";i:0;}i:69;a:3:{s:8:"sphinxql";s:18:"lock tables a read";s:5:"errno";i:1064;s:5:"error";s:53:"Table a is member of a cluster; not suitable for lock";}i:70;a:3:{s:8:"sphinxql";s:20:"lock tables c:a read";s:5:"errno";i:1064;s:5:"error";s:42:"Table c:a absent, or not suitable for lock";}i:71;a:2:{s:8:"sphinxql";s:22:"alter cluster c drop a";s:14:"total_affected";i:0;}i:72;a:2:{s:8:"sphinxql";s:16:"delete cluster c";s:14:"total_affected";i:0;}i:73;a:2:{s:8:"sphinxql";s:12:"drop table a";s:14:"total_affected";i:0;}i:74;a:2:{s:8:"sphinxql";s:12:"drop table b";s:14:"total_affected";i:0;}}}
1+
a:1:{i:0;a:69:{i:0;a:2:{s:8:"sphinxql";s:23:"create table a(iid int)";s:14:"total_affected";i:0;}i:1;a:2:{s:8:"sphinxql";s:23:"create table b(iid int)";s:14:"total_affected";i:0;}i:2;a:2:{s:8:"sphinxql";s:27:"insert into a values (1, 1)";s:14:"total_affected";i:1;}i:3;a:2:{s:8:"sphinxql";s:27:"insert into b values (1, 2)";s:14:"total_affected";i:1;}i:4;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"1";}}}i:5;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"2";}}}i:6;a:2:{s:8:"sphinxql";s:18:"lock tables a read";s:14:"total_affected";i:0;}i:7;a:3:{s:8:"sphinxql";s:27:"insert into a values (2, 1)";s:5:"errno";i:1064;s:5:"error";s:19:"table 'a' is locked";}i:8;a:2:{s:8:"sphinxql";s:27:"insert into b values (2, 2)";s:14:"total_affected";i:1;}i:9;a:3:{s:8:"sphinxql";s:29:"update a set iid=2 where id=1";s:5:"errno";i:1064;s:5:"error";s:24:"table a: table is locked";}i:10;a:2:{s:8:"sphinxql";s:29:"update b set iid=2 where id=1";s:14:"total_affected";i:1;}i:11;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"1";}}}i:12;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"2";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}}}i:13;a:2:{s:8:"sphinxql";s:13:"unlock tables";s:14:"total_affected";i:0;}i:14;a:2:{s:8:"sphinxql";s:27:"insert into a values (8, 1)";s:14:"total_affected";i:1;}i:15;a:2:{s:8:"sphinxql";s:27:"insert into b values (8, 2)";s:14:"total_affected";i:1;}i:16;a:2:{s:8:"sphinxql";s:29:"update a set iid=8 where id=1";s:14:"total_affected";i:1;}i:17;a:2:{s:8:"sphinxql";s:29:"update b set iid=8 where id=1";s:14:"total_affected";i:1;}i:18;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"8";}i:1;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"1";}}}i:19;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:3;s:4:"rows";a:3:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"8";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}i:2;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"2";}}}i:20;a:2:{s:8:"sphinxql";s:18:"lock tables a read";s:14:"total_affected";i:0;}i:21;a:3:{s:8:"sphinxql";s:27:"insert into a values (3, 1)";s:5:"errno";i:1064;s:5:"error";s:19:"table 'a' is locked";}i:22;a:2:{s:8:"sphinxql";s:27:"insert into b values (3, 2)";s:14:"total_affected";i:1;}i:23;a:3:{s:8:"sphinxql";s:29:"update a set iid=3 where id=1";s:5:"errno";i:1064;s:5:"error";s:24:"table a: table is locked";}i:24;a:2:{s:8:"sphinxql";s:29:"update b set iid=3 where id=1";s:14:"total_affected";i:1;}i:25;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"8";}i:1;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"1";}}}i:26;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:4;s:4:"rows";a:4:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"3";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}i:2;a:2:{s:2:"id";s:1:"3";s:3:"iid";s:1:"2";}i:3;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"2";}}}i:27;a:2:{s:8:"sphinxql";s:13:"unlock tables";s:14:"total_affected";i:0;}i:28;a:2:{s:8:"sphinxql";s:27:"insert into a values (4, 1)";s:14:"total_affected";i:1;}i:29;a:2:{s:8:"sphinxql";s:27:"insert into b values (4, 2)";s:14:"total_affected";i:1;}i:30;a:2:{s:8:"sphinxql";s:29:"update a set iid=4 where id=1";s:14:"total_affected";i:1;}i:31;a:2:{s:8:"sphinxql";s:29:"update b set iid=4 where id=1";s:14:"total_affected";i:1;}i:32;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:3;s:4:"rows";a:3:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"4";}i:1;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"1";}i:2;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"1";}}}i:33;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:5;s:4:"rows";a:5:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"4";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}i:2;a:2:{s:2:"id";s:1:"3";s:3:"iid";s:1:"2";}i:3;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"2";}i:4;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"2";}}}i:34;a:2:{s:8:"sphinxql";s:18:"lock tables a read";s:14:"total_affected";i:0;}i:35;a:3:{s:8:"sphinxql";s:10:"show locks";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:4:{s:4:"Type";s:2:"rt";s:4:"Name";s:1:"a";s:9:"Lock Type";s:4:"read";s:15:"Additional Info";s:8:"Count: 1";}}}i:36;a:3:{s:8:"sphinxql";s:27:"insert into a values (9, 1)";s:5:"errno";i:1064;s:5:"error";s:19:"table 'a' is locked";}i:37;a:2:{s:8:"sphinxql";s:27:"insert into b values (9, 2)";s:14:"total_affected";i:1;}i:38;a:3:{s:8:"sphinxql";s:29:"update a set iid=9 where id=1";s:5:"errno";i:1064;s:5:"error";s:24:"table a: table is locked";}i:39;a:2:{s:8:"sphinxql";s:29:"update b set iid=9 where id=1";s:14:"total_affected";i:1;}i:40;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:3;s:4:"rows";a:3:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"4";}i:1;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"1";}i:2;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"1";}}}i:41;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:6;s:4:"rows";a:6:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"9";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}i:2;a:2:{s:2:"id";s:1:"3";s:3:"iid";s:1:"2";}i:3;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"2";}i:4;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"2";}i:5;a:2:{s:2:"id";s:1:"9";s:3:"iid";s:1:"2";}}}i:42;a:3:{s:8:"sphinxql";s:9:"RECONNECT";s:5:"error";s:15:"reconnected ok!";s:5:"errno";i:0;}i:43;a:2:{s:8:"sphinxql";s:27:"insert into a values (5, 1)";s:14:"total_affected";i:1;}i:44;a:2:{s:8:"sphinxql";s:27:"insert into b values (5, 2)";s:14:"total_affected";i:1;}i:45;a:2:{s:8:"sphinxql";s:29:"update a set iid=5 where id=1";s:14:"total_affected";i:1;}i:46;a:2:{s:8:"sphinxql";s:29:"update b set iid=5 where id=1";s:14:"total_affected";i:1;}i:47;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:4;s:4:"rows";a:4:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"5";}i:1;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"1";}i:2;a:2:{s:2:"id";s:1:"5";s:3:"iid";s:1:"1";}i:3;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"1";}}}i:48;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:7;s:4:"rows";a:7:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"5";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}i:2;a:2:{s:2:"id";s:1:"3";s:3:"iid";s:1:"2";}i:3;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"2";}i:4;a:2:{s:2:"id";s:1:"5";s:3:"iid";s:1:"2";}i:5;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"2";}i:6;a:2:{s:2:"id";s:1:"9";s:3:"iid";s:1:"2";}}}i:49;a:2:{s:8:"sphinxql";s:27:"lock tables a read, b write";s:14:"total_affected";i:0;}i:50;a:3:{s:8:"sphinxql";s:13:"show warnings";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:3:{s:5:"Level";s:7:"warning";s:4:"Code";s:4:"1000";s:7:"Message";s:30:"Write lock is not implemented.";}}}i:51;a:3:{s:8:"sphinxql";s:10:"show locks";s:10:"total_rows";i:1;s:4:"rows";a:1:{i:0;a:4:{s:4:"Type";s:2:"rt";s:4:"Name";s:1:"a";s:9:"Lock Type";s:4:"read";s:15:"Additional Info";s:8:"Count: 1";}}}i:52;a:2:{s:8:"sphinxql";s:26:"lock tables a read, b read";s:14:"total_affected";i:0;}i:53;a:2:{s:8:"sphinxql";s:13:"show warnings";s:14:"total_affected";i:0;}i:54;a:3:{s:8:"sphinxql";s:10:"show locks";s:10:"total_rows";i:2;s:4:"rows";a:2:{i:0;a:4:{s:4:"Type";s:2:"rt";s:4:"Name";s:1:"a";s:9:"Lock Type";s:4:"read";s:15:"Additional Info";s:8:"Count: 1";}i:1;a:4:{s:4:"Type";s:2:"rt";s:4:"Name";s:1:"b";s:9:"Lock Type";s:4:"read";s:15:"Additional Info";s:8:"Count: 1";}}}i:55;a:3:{s:8:"sphinxql";s:27:"insert into a values (6, 1)";s:5:"errno";i:1064;s:5:"error";s:19:"table 'a' is locked";}i:56;a:3:{s:8:"sphinxql";s:27:"insert into b values (6, 2)";s:5:"errno";i:1064;s:5:"error";s:19:"table 'b' is locked";}i:57;a:3:{s:8:"sphinxql";s:29:"update a set iid=6 where id=1";s:5:"errno";i:1064;s:5:"error";s:24:"table a: table is locked";}i:58;a:3:{s:8:"sphinxql";s:29:"update b set iid=6 where id=1";s:5:"errno";i:1064;s:5:"error";s:24:"table b: table is locked";}i:59;a:3:{s:8:"sphinxql";s:9:"RECONNECT";s:5:"error";s:15:"reconnected ok!";s:5:"errno";i:0;}i:60;a:2:{s:8:"sphinxql";s:27:"insert into a values (7, 1)";s:14:"total_affected";i:1;}i:61;a:2:{s:8:"sphinxql";s:27:"insert into b values (7, 2)";s:14:"total_affected";i:1;}i:62;a:2:{s:8:"sphinxql";s:29:"update a set iid=7 where id=1";s:14:"total_affected";i:1;}i:63;a:2:{s:8:"sphinxql";s:29:"update b set iid=7 where id=1";s:14:"total_affected";i:1;}i:64;a:3:{s:8:"sphinxql";s:31:"select * from a order by id asc";s:10:"total_rows";i:5;s:4:"rows";a:5:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"7";}i:1;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"1";}i:2;a:2:{s:2:"id";s:1:"5";s:3:"iid";s:1:"1";}i:3;a:2:{s:2:"id";s:1:"7";s:3:"iid";s:1:"1";}i:4;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"1";}}}i:65;a:3:{s:8:"sphinxql";s:31:"select * from b order by id asc";s:10:"total_rows";i:8;s:4:"rows";a:8:{i:0;a:2:{s:2:"id";s:1:"1";s:3:"iid";s:1:"7";}i:1;a:2:{s:2:"id";s:1:"2";s:3:"iid";s:1:"2";}i:2;a:2:{s:2:"id";s:1:"3";s:3:"iid";s:1:"2";}i:3;a:2:{s:2:"id";s:1:"4";s:3:"iid";s:1:"2";}i:4;a:2:{s:2:"id";s:1:"5";s:3:"iid";s:1:"2";}i:5;a:2:{s:2:"id";s:1:"7";s:3:"iid";s:1:"2";}i:6;a:2:{s:2:"id";s:1:"8";s:3:"iid";s:1:"2";}i:7;a:2:{s:2:"id";s:1:"9";s:3:"iid";s:1:"2";}}}i:66;a:2:{s:8:"sphinxql";s:10:"show locks";s:10:"total_rows";i:0;}i:67;a:2:{s:8:"sphinxql";s:12:"drop table a";s:14:"total_affected";i:0;}i:68;a:2:{s:8:"sphinxql";s:12:"drop table b";s:14:"total_affected";i:0;}}}

test/test_316/test.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,6 @@ searchd
9393
select * from a order by id asc;
9494
select * from b order by id asc;
9595
show locks;
96-
create cluster c;
97-
alter cluster c add a;
98-
lock tables a read;
99-
lock tables c:a read;
100-
alter cluster c drop a;
101-
delete cluster c;
10296
drop table a;
10397
drop table b;
10498
</sphinxql>

0 commit comments

Comments
 (0)