diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-10-02 17:53:00 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-10-07 18:33:12 -0400 |
commit | 9ba3877df2a0734fbf2148c7c16ca18bdf7d4bfb (patch) | |
tree | bf88aa2e6171dbc183922f9fd874a80098077cea /src/mongo/db/write_concern_options.h | |
parent | 8c7455b8260da4ae9ced9285e18c7df8850bf36e (diff) | |
download | mongo-9ba3877df2a0734fbf2148c7c16ca18bdf7d4bfb.tar.gz |
SERVER-19934 waitForWriteConcern should take write concern parameter
That way sub-operations, which need to wait on a specific write concern,
which might be different than the one of the entire operation don't need
to change the OperationContext.
Diffstat (limited to 'src/mongo/db/write_concern_options.h')
-rw-r--r-- | src/mongo/db/write_concern_options.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/write_concern_options.h b/src/mongo/db/write_concern_options.h index 217e864a2cf..a0cb45f8da9 100644 --- a/src/mongo/db/write_concern_options.h +++ b/src/mongo/db/write_concern_options.h @@ -57,6 +57,8 @@ public: WriteConcernOptions(const std::string& mode, SyncMode sync, int timeout); + WriteConcernOptions(const std::string& mode, SyncMode sync, Milliseconds timeout); + Status parse(const BSONObj& obj); /** |