Skip to content

Commit

Permalink
v3.2.0 修复 3.1.16, 3.1.17 增加 RedisException 调试命令的信息,导航集群解析 MOVED ASK 失…
Browse files Browse the repository at this point in the history
…败的重要 bug;
  • Loading branch information
28810 authored and 28810 committed Dec 19, 2019
1 parent ffd75cf commit d5b6350
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CSRedisClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ RedisClientPool GetRedirectPool((bool isMoved, bool isAsk, ushort slot, string e
bool isMoved = ex.Message.StartsWith("MOVED ");
bool isAsk = ex.Message.StartsWith("ASK ");
if (isMoved == false && isAsk == false) return null;
var parts = ex.Message.Split(new[] { ' ' }, 3);
var parts = ex.Message.Split(new string[] { "\r\n" }, StringSplitOptions.None).FirstOrDefault().Split(new[] { ' ' }, 3);
if (parts.Length != 3 ||
ushort.TryParse(parts[1], out var slot) == false) return null;
return (isMoved, isAsk, slot, parts[2]);
Expand Down
2 changes: 1 addition & 1 deletion src/CSRedisCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AssemblyName>CSRedisCore</AssemblyName>
<PackageId>CSRedisCore</PackageId>
<RootNamespace>CSRedisCore</RootNamespace>
<Version>3.1.17</Version>
<Version>3.2.0</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageProjectUrl>https://github.com/2881099/csredis</PackageProjectUrl>
<Description>CSRedis 是 redis.io 官方推荐库,支持 redis-trib集群、哨兵、私有分区与连接池管理技术,简易 RedisHelper 静态类。</Description>
Expand Down

0 comments on commit d5b6350

Please sign in to comment.