We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec37906 commit c2df3d3Copy full SHA for c2df3d3
extra/mariabackup/xtrabackup.cc
@@ -2477,11 +2477,11 @@ xb_write_delta_metadata(const char *filename, const xb_delta_info_t *info)
2477
/* ================= backup ================= */
2478
void xtrabackup_io_throttling()
2479
{
2480
- if (!xtrabackup_backup)
+ if (!xtrabackup_backup || !xtrabackup_throttle)
2481
return;
2482
2483
mysql_mutex_lock(&log_sys.mutex);
2484
- if (xtrabackup_throttle && (io_ticket--) < 0)
+ if (io_ticket-- < 0)
2485
mysql_cond_wait(&wait_throttle, &log_sys.mutex);
2486
mysql_mutex_unlock(&log_sys.mutex);
2487
}
0 commit comments