Sfoglia il codice sorgente

check full reply in health check

Brian Gough 7 anni fa
parent
commit
d9214b6eeb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      libraries/redis-wrapper/index.coffee

+ 1 - 1
libraries/redis-wrapper/index.coffee

@@ -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) ->