rpm  5.4.15
Data Fields
mongo_write_concern Struct Reference

#include <rpmio/mongo.h>

Collaboration diagram for mongo_write_concern:
Collaboration graph
[legend]

Data Fields

int w
 Number of total replica write copies to complete including the primary. More...
 
int wtimeout
 Number of milliseconds before replication timeout. More...
 
int j
 If non-zero, block until the journal sync. More...
 
int fsync
 Same a j with journaling enabled; otherwise, call fsync. More...
 
const char * mode
 Either "majority" or a getlasterrormode. More...
 
bsoncmd
 The BSON object representing the getlasterror command. More...
 

Detailed Description

Definition at line 171 of file mongo.h.

Field Documentation

bson* mongo_write_concern::cmd

The BSON object representing the getlasterror command.

Definition at line 178 of file mongo.h.

Referenced by mongo_check_last_error(), mongo_write_concern_destroy(), mongo_write_concern_finish(), and mongo_write_concern_get_cmd().

int mongo_write_concern::fsync

Same a j with journaling enabled; otherwise, call fsync.

Definition at line 175 of file mongo.h.

Referenced by mongo_write_concern_finish(), mongo_write_concern_get_fsync(), and mongo_write_concern_set_fsync().

int mongo_write_concern::j

If non-zero, block until the journal sync.

Definition at line 174 of file mongo.h.

Referenced by mongo_write_concern_finish(), mongo_write_concern_get_j(), and mongo_write_concern_set_j().

const char* mongo_write_concern::mode

Either "majority" or a getlasterrormode.

Overrides w value.

Definition at line 176 of file mongo.h.

Referenced by mongo_write_concern_finish(), mongo_write_concern_get_mode(), and mongo_write_concern_set_mode().

int mongo_write_concern::w

Number of total replica write copies to complete including the primary.

Definition at line 172 of file mongo.h.

Referenced by mongo_choose_write_concern(), mongo_write_concern_finish(), mongo_write_concern_get_w(), and mongo_write_concern_set_w().

int mongo_write_concern::wtimeout

Number of milliseconds before replication timeout.

Definition at line 173 of file mongo.h.

Referenced by mongo_write_concern_finish(), mongo_write_concern_get_wtimeout(), and mongo_write_concern_set_wtimeout().


The documentation for this struct was generated from the following file: