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
b442db65
Commit
b442db65
authored
Jun 11, 2014
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RunId needs to go in a core file, not a debug-only file!
parent
925ea47d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
DebuggingAids.cs
StackExchange.Redis/StackExchange/Redis/DebuggingAids.cs
+0
-16
ServerEndPoint.cs
StackExchange.Redis/StackExchange/Redis/ServerEndPoint.cs
+17
-0
No files found.
StackExchange.Redis/StackExchange/Redis/DebuggingAids.cs
View file @
b442db65
...
...
@@ -101,22 +101,6 @@ Task<string> IRedisAsync.ClientGetNameAsync(CommandFlags flags)
partial
class
ServerEndPoint
{
private
string
runId
;
internal
string
RunId
{
get
{
return
runId
;
}
set
{
if
(
value
!=
runId
)
// we only care about changes
{
// if we had an old run-id, and it has changed, then the
// server has been restarted; which means the script cache
// is toast
if
(
runId
!=
null
)
FlushScriptCache
();
runId
=
value
;
}
}
}
internal
void
SimulateConnectionFailure
()
{
...
...
StackExchange.Redis/StackExchange/Redis/ServerEndPoint.cs
View file @
b442db65
...
...
@@ -327,6 +327,23 @@ internal void FlushScriptCache()
}
}
private
string
runId
;
internal
string
RunId
{
get
{
return
runId
;
}
set
{
if
(
value
!=
runId
)
// we only care about changes
{
// if we had an old run-id, and it has changed, then the
// server has been restarted; which means the script cache
// is toast
if
(
runId
!=
null
)
FlushScriptCache
();
runId
=
value
;
}
}
}
internal
ServerCounters
GetCounters
()
{
var
counters
=
new
ServerCounters
(
endpoint
);
...
...
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