From d9214b6eebe00c6964c51370e2ca3251bf0513e5 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 19 Sep 2019 15:41:43 +0100 Subject: [PATCH] check full reply in health check --- libraries/redis-wrapper/index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/redis-wrapper/index.coffee b/libraries/redis-wrapper/index.coffee index 674dae5594..05f5fa9fbb 100644 --- a/libraries/redis-wrapper/index.coffee +++ b/libraries/redis-wrapper/index.coffee @@ -80,7 +80,7 @@ module.exports = RedisSharelatex = multi.exec (err, reply) -> clearTimeout timer 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() _monkeyPatchIoredisExec: (client) ->