Commit b442db65 authored by Marc Gravell's avatar Marc Gravell

RunId needs to go in a core file, not a debug-only file!

parent 925ea47d
......@@ -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()
{
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment