mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 04:52:38 +00:00
check full reply in health check
This commit is contained in:
parent
2435099766
commit
d9214b6eeb
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ module.exports = RedisSharelatex =
|
||||||
multi.exec (err, reply) ->
|
multi.exec (err, reply) ->
|
||||||
clearTimeout timer
|
clearTimeout timer
|
||||||
return callback(err) if err?
|
return callback(err) if err?
|
||||||
return callback(new Error("bad response from redis health check")) if reply?[0] isnt healthCheckValue
|
return callback(new Error("bad response from redis health check")) if reply?[0] isnt healthCheckValue or reply?[1] isnt 1
|
||||||
return callback()
|
return callback()
|
||||||
|
|
||||||
_monkeyPatchIoredisExec: (client) ->
|
_monkeyPatchIoredisExec: (client) ->
|
||||||
|
|
Loading…
Reference in a new issue