Skip to content

Commit acc886a

Browse files
author
Christian Hergert
committed
write-commands: only include gle if it is necessary.
1 parent 4b96465 commit acc886a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongoc/mongoc-write-command.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define SUPPORTS_WRITE_COMMANDS(n) \
3737
(((n)->min_wire_version <= 2) && ((n)->max_wire_version >= 2))
3838
#define WRITE_CONCERN_DOC(wc) \
39-
(wc) ? \
39+
(wc && _mongoc_write_concern_has_gle ((wc))) ? \
4040
(_mongoc_write_concern_freeze((mongoc_write_concern_t*)(wc))) : \
4141
(&gEmptyWriteConcern)
4242

0 commit comments

Comments
 (0)