• unknown's avatar
    ha_innodb.cc, trx0trx.h, lock0lock.c, trx0trx.c: · ae17c3c7
    unknown authored
    Reserve the MySQL LOCK_thread_count mutex when printing thd->query of
    an arbitrary transaction; if we are printing thd->query of a transaction that
    we know is currently executing inside InnoDB, then we know that MySQL cannot
    meanwhile change thd->query, and no need to reserve the MySQL mutex; note
    that this patch still leaves open the possibility of races in MySQL's
    thd->query_len
    
    
    innobase/trx/trx0trx.c:
      Reserve the MySQL LOCK_thread_count mutex when printing thd->query of an arbitrary transaction; if we are printing thd->query of the a transaction that we know is currently executing inside InnoDB, then we know that MySQL cannot meanwhile change thd->query, and no need to reserve the MySQL mutex; note that thsi patch still leaves aopen the possibility of races in MySQL's thd->query_len
    innobase/lock/lock0lock.c:
      Reserve the MySQL LOCK_thread_count mutex when printing thd->query of an arbitrary transaction; if we are printing thd->query of the a transaction that we know is currently executing inside InnoDB, then we know that MySQL cannot meanwhile change thd->query, and no need to reserve the MySQL mutex; note that thsi patch still leaves aopen the possibility of races in MySQL's thd->query_len
    innobase/include/trx0trx.h:
      Reserve the MySQL LOCK_thread_count mutex when printing thd->query of an arbitrary transaction; if we are printing thd->query of the a transaction that we know is currently executing inside InnoDB, then we know that MySQL cannot meanwhile change thd->query, and no need to reserve the MySQL mutex; note that thsi patch still leaves aopen the possibility of races in MySQL's thd->query_len
    sql/ha_innodb.cc:
      Reserve the MySQL LOCK_thread_count mutex when printing thd->query of an arbitrary transaction; if we are printing thd->query of the a transaction that we know is currently executing inside InnoDB, then we know that MySQL cannot meanwhile change thd->query, and no need to reserve the MySQL mutex; note that thsi patch still leaves aopen the possibility of races in MySQL's thd->query_len
    ae17c3c7
trx0trx.h 21.4 KB