Skip to content

Commit 45143f6

Browse files
committed
Merge pull request #11 from gaillard/master
Use background index creation.
2 parents d3cb1ea + dcba3c2 commit 45143f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DominionEnterprises.Mongo/Queue.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using MongoDB.Driver;
66
using System.Reflection;
77

8-
[assembly: AssemblyVersion("1.0.2.*")]
8+
[assembly: AssemblyVersion("1.0.3.*")]
99

1010
namespace DominionEnterprises.Mongo
1111
{
@@ -445,7 +445,7 @@ private void EnsureIndex(IndexKeysDocument index)
445445

446446
try
447447
{
448-
collection.EnsureIndex(index, new IndexOptionsDocument("name", name));
448+
collection.EnsureIndex(index, new IndexOptionsDocument { {"name", name }, { "background", true } });
449449
}
450450
catch (MongoCommandException)
451451
{

0 commit comments

Comments
 (0)