File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,10 @@ internal ReplicaSetInformation ReplicaSetInformation
115
115
{
116
116
get
117
117
{
118
- return _serverInfo . ReplicaSetInformation ;
118
+ lock ( _serverInstanceLock )
119
+ {
120
+ return _serverInfo . ReplicaSetInformation ;
121
+ }
119
122
}
120
123
}
121
124
@@ -148,7 +151,7 @@ public MongoServerAddress Address
148
151
}
149
152
internal set
150
153
{
151
- lock ( _address )
154
+ lock ( _serverInstanceLock )
152
155
{
153
156
_address = value ;
154
157
}
@@ -705,7 +708,7 @@ private void StateVerificationTimerCallback()
705
708
}
706
709
}
707
710
708
- /// <remarks>This method must be raised outside of a lock.</remarks>
711
+ /// <remarks>This method must be called outside of a lock.</remarks>
709
712
private void SetState ( MongoServerState newState , ServerInformation newServerInfo )
710
713
{
711
714
bool raiseChangedEvent = false ;
You can’t perform that action at this time.
0 commit comments