On 2/23/11 1:18 PM, Tor Didriksen wrote:
> On 2011-02-23 15:41, Davi Arnaut wrote:
>>> +--echo # connection default
>>> +connection default;
>>
>> I think its better to reap con1 before disconnecting, it avoids
>> problem when running under embedded.
>>
>> Regards,
>>
>> Davi
> We are killing that connection, so the reap may fail.
Do something like:
--error ER_QUERY_INTERRUPTED
--reap
(and change the kill to a KILL QUERY)
This is necessary when the test is running under embedded because --send
is executed in a separate thread. If not reaped, the connection might be
closed whilst this thread is still executing within the server code.
Regards,
Davi