Skip to content

Commit be21a30

Browse files
committed
Merge pull request #86 from jmikola/patch-1
Fix majority docs for mongoc_write_concern_set_w()
2 parents 705bd1c + 4d9b8ed commit be21a30

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/mongoc/mongoc-write-concern.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,14 @@ mongoc_write_concern_get_w (const mongoc_write_concern_t *write_concern)
160160

161161
/**
162162
* mongoc_write_concern_set_w:
163-
* @w: The number of nodes for write or -1 for "majority".
163+
* @w: The number of nodes for write or MONGOC_WRITE_CONCERN_W_MAJORITY
164+
* for "majority".
164165
*
165166
* Sets the number of nodes that must acknowledge the write request before
166167
* acknowledging the write request to the client.
167168
*
168-
* You may specifiy @w as -1 to request that a "majority" of nodes
169-
* acknowledge the request.
169+
* You may specifiy @w as MONGOC_WRITE_CONCERN_W_MAJORITY to request that
170+
* a "majority" of nodes acknowledge the request.
170171
*/
171172
void
172173
mongoc_write_concern_set_w (mongoc_write_concern_t *write_concern,

0 commit comments

Comments
 (0)