Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
4c781d7e
Commit
4c781d7e
authored
Jul 03, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove "high priority" code; not marked [Obsolete] yet
parent
9a63d26d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
ConnectionMultiplexer.cs
...change.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
+4
-2
CommandFlags.cs
...kExchange.Redis/StackExchange/Redis/Enums/CommandFlags.cs
+2
-1
Message.cs
StackExchange.Redis/StackExchange/Redis/Message.cs
+2
-3
ServerEndPoint.cs
StackExchange.Redis/StackExchange/Redis/ServerEndPoint.cs
+4
-1
No files found.
StackExchange.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
View file @
4c781d7e
...
...
@@ -305,8 +305,9 @@ internal void MakeMaster(ServerEndPoint server, ReplicationChangeOptions options
if
(
log
==
null
)
log
=
TextWriter
.
Null
;
CommandMap
.
AssertAvailable
(
RedisCommand
.
SLAVEOF
);
#pragma warning disable CS0618
const
CommandFlags
flags
=
CommandFlags
.
NoRedirect
|
CommandFlags
.
HighPriority
;
#pragma warning restore CS0618
Message
msg
;
LogLocked
(
log
,
"Checking {0} is available..."
,
Format
.
ToString
(
srv
.
EndPoint
));
...
...
@@ -1275,8 +1276,9 @@ internal async Task<bool> ReconfigureAsync(bool first, bool reconfigureAll, Text
{
throw
new
InvalidOperationException
(
"No nodes to consider"
);
}
#pragma warning disable CS0618
const
CommandFlags
flags
=
CommandFlags
.
NoRedirect
|
CommandFlags
.
HighPriority
;
#pragma warning restore CS0618
List
<
ServerEndPoint
>
masters
=
new
List
<
ServerEndPoint
>(
endpoints
.
Count
);
bool
useTieBreakers
=
!
string
.
IsNullOrWhiteSpace
(
configuration
.
TieBreaker
);
...
...
StackExchange.Redis/StackExchange/Redis/Enums/CommandFlags.cs
View file @
4c781d7e
...
...
@@ -13,8 +13,9 @@ public enum CommandFlags
/// </summary>
None
=
0
,
/// <summary>
///
This command may jump regular-priority commands that have not yet been written to the redis stream.
///
From 2.0, this flag is not used
/// </summary>
// [Obsolete("From 2.0, this flag is not used", false)]
HighPriority
=
1
,
/// <summary>
/// The caller is not interested in the result; the caller will immediately receive a default-value
...
...
StackExchange.Redis/StackExchange/Redis/Message.cs
View file @
4c781d7e
...
...
@@ -65,7 +65,9 @@ internal abstract class Message : ICompletable
|
CommandFlags
.
DemandSlave
|
CommandFlags
.
PreferMaster
|
CommandFlags
.
PreferSlave
#pragma warning disable CS0618
|
CommandFlags
.
HighPriority
#pragma warning restore CS0618
|
CommandFlags
.
FireAndForget
|
CommandFlags
.
NoRedirect
|
CommandFlags
.
NoScriptCache
;
...
...
@@ -199,9 +201,6 @@ internal void SetScriptUnavailable()
}
public
bool
IsFireAndForget
=>
(
flags
&
CommandFlags
.
FireAndForget
)
!=
0
;
public
bool
IsHighPriority
=>
(
flags
&
CommandFlags
.
HighPriority
)
!=
0
;
public
bool
IsInternalCall
=>
(
flags
&
InternalCallFlag
)
!=
0
;
public
ResultBox
ResultBox
=>
resultBox
;
...
...
StackExchange.Redis/StackExchange/Redis/ServerEndPoint.cs
View file @
4c781d7e
...
...
@@ -261,8 +261,9 @@ internal void AutoConfigure(PhysicalConnection connection)
}
var
commandMap
=
Multiplexer
.
CommandMap
;
#pragma warning disable CS0618
const
CommandFlags
flags
=
CommandFlags
.
FireAndForget
|
CommandFlags
.
HighPriority
|
CommandFlags
.
NoRedirect
;
#pragma warning restore CS0618
var
features
=
GetFeatures
();
Message
msg
;
...
...
@@ -514,7 +515,9 @@ internal bool CheckInfoReplication()
if
(
version
>=
RedisFeatures
.
v2_8_0
&&
Multiplexer
.
CommandMap
.
IsAvailable
(
RedisCommand
.
INFO
)
&&
(
bridge
=
GetBridge
(
ConnectionType
.
Interactive
,
false
))
!=
null
)
{
#pragma warning disable CS0618
var
msg
=
Message
.
Create
(-
1
,
CommandFlags
.
FireAndForget
|
CommandFlags
.
HighPriority
|
CommandFlags
.
NoRedirect
,
RedisCommand
.
INFO
,
RedisLiterals
.
replication
);
#pragma warning restore CS0618
msg
.
SetInternalCall
();
WriteDirectFireAndForget
(
msg
,
ResultProcessor
.
AutoConfigure
,
bridge
);
return
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment