~drizzle-developers/ubuntu/karmic/drizzle/ppa

« back to all changes in this revision

Viewing changes to plugin/session_dictionary/tests/t/long_proccesslist_info.test

  • Committer: Monty Taylor
  • Date: 2010-11-24 18:44:57 UTC
  • mfrom: (1308.1.31 trunk)
  • Revision ID: mordred@inaugust.com-20101124184457-qd6jvoe2wgnvl3yq
Tags: 2010.11.04-0ubuntu1~karmic1
* New upstream release.
* Turn off -Werror for packaging builds. (Closes: #602662)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Test creating a barrier with a number
 
2
connect (con1,localhost,root,,);
 
3
connect (con5,localhost,root,,);
 
4
 
 
5
# The default connection will own everything.
 
6
connection default;
 
7
set @count_barrier= "count_barrier";
 
8
set @barrier_limit= 6;
 
9
SELECT create_barrier(@count_barrier, @barrier_limit);
 
10
SELECT if ((SESSION_ID = CONNECTION_ID()), "YES", "NO"), GENERATION, if ((WAITER_LIMIT = @barrier_limit), "YES", "NO") from DATA_DICTIONARY.USER_BARRIERS WHERE USER_BARRIER_NAME=@count_barrier;
 
11
 
 
12
connection con1;
 
13
set @count_barrier= "count_barrier";
 
14
send SELECT wait(@count_barrier),
 
15
"con1","llllllllllloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongTooooooooooooooooooooooooooooChhhhhhhhhhhhhhhhhhhhheeeeeeeeeeeeeeeecccccccccccccccccccccccckkkkkkkkkkkkkkkkkkkFooooooooooooooooooooooooooooooooooooooooooorIssssssssssssssssssssssssssssssssssssssssssssssssuuuuuuuuuuuuuuuuuuuuuuueeeeeeeeeeeeeeesssssssssssssssssssssssOoooooooofffffffffffffffffffffffffffffffffLeeeeeeeeeeeeeeeennnnnnnnnnnnnnnnnnnnnnnnnnnngggggggggggggggggggggggggggggtttttttttttttttthhhh";
 
16
 
 
17
# We don't budge until we know everyone is in place.
 
18
connection con5;
 
19
set @count_barrier= "count_barrier";
 
20
SELECT WAIT_UNTIL(@count_barrier, 1);
 
21
SELECT USER,INFO FROM DATA_DICTIONARY.PROCESSLIST;
 
22
SELECT signal(@count_barrier);