{
    "mode": "perldoc",
    "parameter": "MongoDB::WriteConcern",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/MongoDB%3A%3AWriteConcern/json",
    "generated": "2026-06-12T23:56:28Z",
    "synopsis": "$rp = MongoDB::WriteConcern->new(); # w:1, wtimeout: 1000\n$rp = MongoDB::WriteConcern->new(\nw        => 'majority',\nwtimeout => 10000, # milliseconds\n);",
    "sections": {
        "NAME": {
            "content": "MongoDB::WriteConcern - Encapsulate and validate a write concern\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version v2.2.2\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "$rp = MongoDB::WriteConcern->new(); # w:1, wtimeout: 1000\n\n$rp = MongoDB::WriteConcern->new(\nw        => 'majority',\nwtimeout => 10000, # milliseconds\n);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "A write concern describes the guarantee that MongoDB provides when reporting on the success of a\nwrite operation.\n\nFor core documentation on read preference see\n<http://docs.mongodb.org/manual/core/read-preference/>.\n",
            "subsections": []
        },
        "ATTRIBUTES": {
            "content": "w\nSpecifies the desired acknowledgement level. If not set, the server default will be used, which\nis usually \"1\".\n\nwtimeout\nSpecifies how long to wait for the write concern to be satisfied (in milliseconds). Defaults to\n1000. If you set this to undef, it could block indefinitely (or until socket timeout is\nreached).\n\nj\nThe j option confirms that the mongod instance has written the data to the on-disk journal.\nDefaults to false.\n\nNote: specifying a write concern that set j to a true value may result in an error with a mongod\nor mongos running with --nojournal option now errors.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "*   David Golden <david@mongodb.com>\n\n*   Rassi <rassi@mongodb.com>\n\n*   Mike Friedman <friedo@friedo.com>\n\n*   Kristina Chodorow <k.chodorow@gmail.com>\n\n*   Florian Ragwitz <rafl@debian.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is Copyright (c) 2020 by MongoDB, Inc.\n\nThis is free software, licensed under:\n\nThe Apache License, Version 2.0, January 2004\n",
            "subsections": []
        }
    },
    "summary": "MongoDB::WriteConcern - Encapsulate and validate a write concern",
    "flags": [],
    "examples": [],
    "see_also": []
}