Skip to content

Commit

Permalink
Changed IsSlave with IsReplica
Browse files Browse the repository at this point in the history
  • Loading branch information
imperugo committed Jun 17, 2020
1 parent 8f9f1a5 commit 68c1bc7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- General information -->
<PropertyGroup>
<Authors>Ugo Lattanzi</Authors>
<VersionPrefix>6.2.2</VersionPrefix>
<VersionPrefix>6.3.0</VersionPrefix>
<!-- <VersionSuffix>pre</VersionSuffix> -->
<TargetFrameworks>netstandard2.0;net461;net472;netcoreapp3.0;netcoreapp3.1</TargetFrameworks>
<IncludeSource>True</IncludeSource>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ public ConfigurationOptions ConfigurationOptions
AbortOnConnectFail = AbortOnConnectFail,
ConfigurationChannel = ConfigurationChannel,
ChannelPrefix = KeyPrefix,
ConnectRetry = 0,
};

if (IsSentinelCluster)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public Task FlushDbAsync()
{
var server = Database.Multiplexer.GetServer(endPoints[i]);

if (!server.IsSlave)
if (!server.IsReplica)
tasks.Add(server.FlushDatabaseAsync(Database.Database));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Net;

using StackExchange.Redis.Extensions.Core.Configuration;

namespace StackExchange.Redis.Extensions.Core.ServerIteration
Expand Down Expand Up @@ -41,7 +42,7 @@ public IEnumerator<IServer> GetEnumerator()
var server = multiplexer.GetServer(endPoint);
if (targetRole == ServerEnumerationStrategy.TargetRoleOptions.PreferSlave)
{
if (!server.IsSlave)
if (!server.IsReplica)
continue;
}

Expand Down

0 comments on commit 68c1bc7

Please sign in to comment.