Skip to content

Commit 8d8b18a

Browse files
author
rstam
committed
CSHARP-955: Added ParallelCollectionScan to whitelist of commands that can be sent to a secondary.
1 parent 31466a9 commit 8d8b18a

File tree

5 files changed

+12
-1
lines changed

5 files changed

+12
-1
lines changed

MongoDB.BsonUnitTests/MongoDB.BsonUnitTests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@
253253
<Name>MongoDB.Bson</Name>
254254
</ProjectReference>
255255
</ItemGroup>
256+
<ItemGroup>
257+
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
258+
</ItemGroup>
256259
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
257260
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
258261
Other similar extension points exist, see Microsoft.Common.targets.

MongoDB.Driver/CanCommandBeSentToSecondary.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public static class CanCommandBeSentToSecondary
3939
"geoSearch",
4040
"geoWalk",
4141
"group",
42+
"parallelCollectionScan",
4243
"text"
4344
};
4445

MongoDB.DriverUnitTests/CanCommandBeSentToSecondaryTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ public void TestSetDelegate()
4848
[TestCase("geoSearch", true)]
4949
[TestCase("geoWalk", true)]
5050
[TestCase("group", true)]
51+
[TestCase("parallelCollectionScan", true)]
5152
[TestCase("text", true)]
5253
[TestCase("foo", false)]
53-
[TestCase("mapreduce", false)]
54+
[TestCase("mapReduce", false)]
5455
public void TestCanSendCommandToSecondary(string command, bool expectedResult)
5556
{
5657
var doc = new BsonDocument(command, 1);

MongoDB.DriverUnitTests/MongoDB.DriverUnitTests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@
272272
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
273273
</None>
274274
</ItemGroup>
275+
<ItemGroup>
276+
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
277+
</ItemGroup>
275278
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
276279
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
277280
Other similar extension points exist, see Microsoft.Common.targets.

MongoDB.DriverUnitTestsVB/MongoDB.DriverUnitTestsVB.vbproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@
126126
<Name>MongoDB.Driver</Name>
127127
</ProjectReference>
128128
</ItemGroup>
129+
<ItemGroup>
130+
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
131+
</ItemGroup>
129132
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
130133
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
131134
Other similar extension points exist, see Microsoft.Common.targets.

0 commit comments

Comments
 (0)