Commit 94adafba authored by Marc Gravell's avatar Marc Gravell

Merge pull request #156 from bgertsberg/master

Prevent EVAL to SCRIPT conversion if it is not supported 
parents dcf546f4 d5410711
...@@ -2220,7 +2220,7 @@ public override int GetHashSlot(ServerSelectionStrategy serverSelectionStrategy) ...@@ -2220,7 +2220,7 @@ public override int GetHashSlot(ServerSelectionStrategy serverSelectionStrategy)
public IEnumerable<Message> GetMessages(PhysicalConnection connection) public IEnumerable<Message> GetMessages(PhysicalConnection connection)
{ {
if (script != null) // a script was provided (rather than a hash); check it is known if (script != null && connection.Multiplexer.CommandMap.IsAvailable(RedisCommand.SCRIPT)) // a script was provided (rather than a hash); check it is known and supported
{ {
asciiHash = connection.Bridge.ServerEndPoint.GetScriptHash(script, command); asciiHash = connection.Bridge.ServerEndPoint.GetScriptHash(script, command);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment