logger: show pressure_mode for debugging

This commit is contained in:
Thomas Schoebel-Theuer 2021-02-05 09:46:22 +01:00 committed by Thomas Schoebel-Theuer
parent 133ff979b5
commit 35466f0396
2 changed files with 4 additions and 0 deletions

View File

@ -2409,6 +2409,7 @@ int _do_ranking(struct trans_logger_brick *brick)
pressure_mode = 0;
else if (trans_logger_disable_pressure < 0)
pressure_mode = 1;
brick->pressure_mode = pressure_mode;
if (delay_callers) {
if (!brick->delay_callers) {
@ -3305,6 +3306,7 @@ char *trans_logger_statistics(struct trans_logger_brick *brick, int verbose)
"log_reads=%d | "
"cease_logging=%d "
"stopped_logging=%d "
"pressure_mode=%d "
"congested=%d | "
"replay_start_pos = %lld "
"replay_end_pos = %lld | "
@ -3363,6 +3365,7 @@ char *trans_logger_statistics(struct trans_logger_brick *brick, int verbose)
brick->log_reads,
brick->cease_logging,
brick->stopped_logging,
brick->pressure_mode,
_congested(brick),
brick->replay_start_pos,
brick->replay_end_pos,

View File

@ -238,6 +238,7 @@ struct trans_logger_brick {
atomic_t total_restart_count;
atomic_t total_delay_count;
#endif
int pressure_mode;
// queues
struct logger_queue q_phase[LOGGER_QUEUES];
struct rank_data rkd[LOGGER_QUEUES];