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 89209b8 commit 19ea518Copy full SHA for 19ea518
index.js
@@ -389,9 +389,15 @@ RedisClient.prototype.on_info_cmd = function (err, res) {
389
}
390
391
if (!this.server_info.loading || this.server_info.loading === '0') {
392
- debug('Redis server ready.');
393
- this.on_ready();
394
- return;
+ // If the master_link_status exists but the link is not up, try again after 50 ms
+ if (this.server_info.master_link_status && this.server_info.master_link_status !== 'up') {
+ this.server_info.loading_eta_seconds = 0.05;
395
+ } else {
396
+ // Eta loading should change
397
+ debug('Redis server ready.');
398
+ this.on_ready();
399
+ return;
400
+ }
401
402
403
var retry_time = +this.server_info.loading_eta_seconds * 1000;
0 commit comments