@@ -37,7 +37,6 @@ public static long TotalFailedSentinelWorkers
37
37
get { return Interlocked . Read ( ref RedisState . TotalFailedSentinelWorkers ) ; }
38
38
}
39
39
40
-
41
40
/// <summary>
42
41
/// Number of times we've forced Sentinel to failover to another master due to
43
42
/// consecutive errors beyond sentinel.WaitBeforeForcingMasterFailover
@@ -119,6 +118,14 @@ public static long TotalRetryTimedout
119
118
get { return Interlocked . Read ( ref RedisState . TotalRetryTimedout ) ; }
120
119
}
121
120
121
+ /// <summary>
122
+ /// Total number of deactivated clients that are pending being disposed
123
+ /// </summary>
124
+ public static long TotalPendingDeactivatedClients
125
+ {
126
+ get { return RedisState . DeactivatedClients . Count ; }
127
+ }
128
+
122
129
public static void Reset ( )
123
130
{
124
131
Interlocked . Exchange ( ref RedisState . TotalFailovers , 0 ) ;
@@ -151,7 +158,7 @@ public static Dictionary<string, long> ToDictionary()
151
158
{ "TotalClientsCreatedOutsidePool" , TotalClientsCreatedOutsidePool } ,
152
159
{ "TotalSubjectiveServersDown" , TotalSubjectiveServersDown } ,
153
160
{ "TotalObjectiveServersDown" , TotalObjectiveServersDown } ,
154
- { "TotalPendingDeactivatedClients" , RedisState . DeactivatedClients . Count } ,
161
+ { "TotalPendingDeactivatedClients" , TotalPendingDeactivatedClients } ,
155
162
{ "TotalRetryCount" , TotalRetryCount } ,
156
163
{ "TotalRetrySuccess" , TotalRetrySuccess } ,
157
164
{ "TotalRetryTimedout" , TotalRetryTimedout } ,
0 commit comments