Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alihm committed Jan 9, 2025
1 parent ca0809b commit 872b8c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ClusterOperator/Operator.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,10 @@ class Operator {
let tries = 0;
while (!fs.existsSync(`./dumps/${backupFilename}.sql`)) {
// reset master if file is not being replicated.
if (tries === 20) {
this.downloadBackup(backupFilename, filesize);
if (tries === 15) {
await this.downloadBackup(backupFilename, filesize);
}
if (tries > 30) {
if (tries > 20) {
if (this.masterWSConn) {
try {
this.masterWSConn.removeAllListeners();
Expand Down

0 comments on commit 872b8c0

Please sign in to comment.