@@ -303,18 +303,18 @@ public int MaxWireDocumentSize
303
303
}
304
304
305
305
/// <summary>
306
- /// Gets the maximum size of the wire batch .
306
+ /// Gets the maximum batch count for write operations .
307
307
/// </summary>
308
308
/// <value>
309
- /// The maximum size of the wire batch.
309
+ /// The maximum batch count .
310
310
/// </value>
311
- public int MaxWireBatchSize
311
+ public int MaxBatchCount
312
312
{
313
313
get
314
314
{
315
315
lock ( _serverInstanceLock )
316
316
{
317
- return _serverInfo . MaxWireBatchSize ;
317
+ return _serverInfo . MaxBatchCount ;
318
318
}
319
319
}
320
320
}
@@ -720,7 +720,7 @@ private void LookupServerInformation(MongoConnection connection)
720
720
IsSecondary = false ,
721
721
MaxDocumentSize = currentServerInfo . MaxDocumentSize ,
722
722
MaxMessageLength = currentServerInfo . MaxMessageLength ,
723
- MaxWireBatchSize = currentServerInfo . MaxWireBatchSize ,
723
+ MaxBatchCount = currentServerInfo . MaxBatchCount ,
724
724
ReplicaSetInformation = currentServerInfo . ReplicaSetInformation
725
725
} ;
726
726
@@ -878,7 +878,7 @@ private class ServerInformation
878
878
879
879
public int MaxWireDocumentSize { get { return MaxDocumentSize + 16 * 1024 ; } }
880
880
881
- public int MaxWireBatchSize { get ; set ; }
881
+ public int MaxBatchCount { get ; set ; }
882
882
883
883
public ReplicaSetInformation ReplicaSetInformation { get ; set ; }
884
884
@@ -924,7 +924,7 @@ public bool IsDifferentFrom(ServerInformation other)
924
924
return true ;
925
925
}
926
926
927
- if ( MaxWireBatchSize != other . MaxWireBatchSize )
927
+ if ( MaxBatchCount != other . MaxBatchCount )
928
928
{
929
929
return true ;
930
930
}
0 commit comments