Skip to content

Commit e5fb86f

Browse files
committed
allow bulk op insert for w:0 bulk inserts
o fixes a performance regression for 2.6 w:0 writes o allows w:0 writes to fast path out of the bulk api on 2.4
1 parent 6ae8c48 commit e5fb86f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mongoc/mongoc-bulk-operation.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ mongoc_bulk_operation_insert (mongoc_bulk_operation_t *bulk,
177177
}
178178

179179
_mongoc_write_command_init_insert (&command, &document, 1, bulk->ordered,
180-
false);
180+
!_mongoc_write_concern_has_gle (bulk->write_concern));
181+
181182
_mongoc_array_append_val (&bulk->commands, command);
182183

183184
EXIT;

0 commit comments

Comments
 (0)