We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85bef16 commit c50d9a6Copy full SHA for c50d9a6
src/Operation/CreateIndexes.php
@@ -5,6 +5,7 @@
5
use MongoDB\Driver\Command;
6
use MongoDB\Driver\Server;
7
use MongoDB\Driver\BulkWrite as Bulk;
8
+use MongoDB\Driver\WriteConcern;
9
use MongoDB\Exception\InvalidArgumentException;
10
use MongoDB\Exception\RuntimeException;
11
use MongoDB\Exception\UnexpectedTypeException;
@@ -113,6 +114,6 @@ private function executeLegacy(Server $server)
113
114
$bulk->insert($index);
115
}
116
- $server->executeBulkWrite($this->databaseName . '.system.indexes', $bulk);
117
+ $server->executeBulkWrite($this->databaseName . '.system.indexes', $bulk, new WriteConcern(1));
118
119
0 commit comments