GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MONGODB::WRITECONCERN (3)

.ds Aq ’

NAME

MongoDB::WriteConcern - Encapsulate and validate a write concern

CONTENTS

VERSION

version v1.2.3

SYNOPSIS



    $rp = MongoDB::WriteConcern->new(); # w:1, wtimeout: 1000

    $rp = MongoDB::WriteConcern->new(
        w        => majority,
        wtimeout => 10000, # milliseconds
    );



DESCRIPTION

A write concern describes the guarantee that MongoDB provides when reporting on the success of a write operation.

For core documentation on read preference see <http://docs.mongodb.org/manual/core/read-preference/>.

ATTRIBUTES

    w

Specifies the desired acknowledgement level. Defaults to ’1’.

    wtimeout

Specifies how long to wait for the write concern to be satisfied (in milliseonds). Defaults to 1000.

    j

The j option confirms that the mongod instance has written the data to the on-disk journal. Defaults to false.

<B>NoteB>: specifying a write concern that set j to a true value may result in an error with a mongod or mongos running with --nojournal option now errors.

AUTHORS

o David Golden <david@mongodb.com>
o Mike Friedman <friedo@friedo.com>
o Kristina Chodorow <k.chodorow@gmail.com>
o Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2016 by MongoDB, Inc..

This is free software, licensed under:



  The Apache License, Version 2.0, January 2004



Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MONGODB::WRITECONCERN (3) 2016-03-08

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.