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
d9d78f8b
Commit
d9d78f8b
authored
Jun 29, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dispose pipe with physical connection; update lib; use dedicated db for FlushFetchRandomKey()
parent
6c7e575b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
4 deletions
+6
-4
Keys.cs
StackExchange.Redis.Tests/Keys.cs
+2
-2
StackExchange.Redis.csproj
StackExchange.Redis/StackExchange.Redis.csproj
+1
-1
ConnectionMultiplexer.cs
...change.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
+1
-0
PhysicalConnection.cs
...kExchange.Redis/StackExchange/Redis/PhysicalConnection.cs
+1
-0
TestConsole.csproj
TestConsole/TestConsole.csproj
+1
-1
No files found.
StackExchange.Redis.Tests/Keys.cs
View file @
d9d78f8b
...
...
@@ -29,11 +29,11 @@ public void TestScan()
}
[
Fact
]
public
void
RandomKey
()
public
void
FlushFetch
RandomKey
()
{
using
(
var
conn
=
Create
(
allowAdmin
:
true
))
{
var
db
=
conn
.
GetDatabase
();
var
db
=
conn
.
GetDatabase
(
7
);
conn
.
GetServer
(
TestConfig
.
Current
.
MasterServerAndPort
).
FlushDatabase
();
string
anyKey
=
db
.
KeyRandom
();
...
...
StackExchange.Redis/StackExchange.Redis.csproj
View file @
d9d78f8b
...
...
@@ -24,6 +24,6 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="0.2.1-alpha.5
1
" />
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="0.2.1-alpha.5
2
" />
</ItemGroup>
</Project>
\ No newline at end of file
StackExchange.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
View file @
d9d78f8b
...
...
@@ -1564,6 +1564,7 @@ private async Task<ServerEndPoint> NominatePreferredMaster(TextWriter log, Serve
if
(
useTieBreakers
)
{
// count the votes
uniques
=
new
Dictionary
<
string
,
int
>(
StringComparer
.
OrdinalIgnoreCase
);
LogLocked
(
log
,
"Waiting for tiebreakers..."
);
await
WaitAllIgnoreErrorsAsync
(
tieBreakers
,
50
,
log
).
ForAwait
();
for
(
int
i
=
0
;
i
<
tieBreakers
.
Length
;
i
++)
{
...
...
StackExchange.Redis/StackExchange/Redis/PhysicalConnection.cs
View file @
d9d78f8b
...
...
@@ -127,6 +127,7 @@ public void Dispose()
try
{
ioPipe
.
Output
?.
Complete
();
}
catch
{
}
ioPipe
.
Output
?.
Complete
();
}
try
{
using
(
ioPipe
as
IDisposable
)
{
}
}
catch
{
}
if
(
socketToken
.
HasValue
)
{
...
...
TestConsole/TestConsole.csproj
View file @
d9d78f8b
...
...
@@ -14,7 +14,7 @@
<ProjectReference Include="..\StackExchange.Redis\StackExchange.Redis.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="0.2.1-alpha.5
1
" />
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="0.2.1-alpha.5
2
" />
</ItemGroup>
</Project>
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