• unknown's avatar
    InnoDB: implement innodb_max_purge_lag · f8eee7ca
    unknown authored
    
    innobase/include/srv0srv.h:
      Added srv_max_purge_lag and srv_dml_needed_delay
    innobase/include/trx0sys.h:
      Added trx_sys->rseg_history_len
    innobase/row/row0mysql.c:
      Added row_mysql_delay_if_needed()
    innobase/srv/srv0srv.c:
      Added srv_max_purge_lag and srv_dml_needed_delay
    innobase/trx/trx0purge.c:
      Update trx_sys->rseg_history_len.
      Calculate srv_dml_needed_delay from srv_max_purge_lag
      and trx_sys->rseg_history_len.
    innobase/trx/trx0rseg.c:
      Initialize trx_sys->rseg_history_len
    sql/ha_innodb.h:
      Add srv_max_purge_lag
    sql/mysqld.cc:
      Add parameter innodb_max_purge_lag
    sql/set_var.cc:
      Add global variable innodb_max_purge_lag
    f8eee7ca
trx0sys.h 16 KB