• unknown's avatar
    Bug #29307: status.test fails with different Table_locks_immediate · 4f3c8e77
    unknown authored
    When using --log --log-output=table, we increment Table_locks_immediate
    with every query.  The wait_condition.inc runs a query a variable number
    of times, depending on server load, etc.  This is a problem, when the
    test is checking the Table_locks_immediate value.
    
    Fix is to adjust the Table_locks_immediate value based on how many times
    the wait_condition query was executed.
    
    
    mysql-test/include/wait_condition.inc:
      Add a $wait_condition_reps variable, which lets the caller check how
      many times the wait_condition query was executed.
      
      This is used in the main.status test to adjust the value of
      Table_locks_immediate (it gets incremented with each query
      when --log --log-output=table).
    mysql-test/t/status.test:
      Adjust Table_locks_immediate value based on how many times the
      wait_condition query had to run.
    4f3c8e77
wait_condition.inc 1.23 KB