diff options
author | Misha Tyulenev <misha@mongodb.com> | 2018-09-24 20:49:41 -0400 |
---|---|---|
committer | Misha Tyulenev <misha@mongodb.com> | 2018-09-24 20:50:33 -0400 |
commit | 3f618b86df0473ab905cc4a0ad78f4be8d3428e3 (patch) | |
tree | 2f2258875e62af55e31656120ff402cbe6eeae12 /src/mongo/db/write_concern_options.cpp | |
parent | c5b5185e541fe96c3ff9e086a716ae0e6a9aefde (diff) | |
download | mongo-3f618b86df0473ab905cc4a0ad78f4be8d3428e3.tar.gz |
SERVER-29160 bump timeout for migration operations
Diffstat (limited to 'src/mongo/db/write_concern_options.cpp')
-rw-r--r-- | src/mongo/db/write_concern_options.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/write_concern_options.cpp b/src/mongo/db/write_concern_options.cpp index 26f5778be37..19f44ed8d74 100644 --- a/src/mongo/db/write_concern_options.cpp +++ b/src/mongo/db/write_concern_options.cpp @@ -69,6 +69,11 @@ const BSONObj WriteConcernOptions::Default = BSONObj(); const BSONObj WriteConcernOptions::Acknowledged(BSON("w" << W_NORMAL)); const BSONObj WriteConcernOptions::Unacknowledged(BSON("w" << W_NONE)); const BSONObj WriteConcernOptions::Majority(BSON("w" << WriteConcernOptions::kMajority)); +const Seconds WriteConcernOptions::kWriteConcernTimeoutSystem{15}; +const Seconds WriteConcernOptions::kWriteConcernTimeoutMigration{30}; +const Seconds WriteConcernOptions::kWriteConcernTimeoutSharding{60}; +const Seconds WriteConcernOptions::kWriteConcernTimeoutUserCommand{60}; + WriteConcernOptions::WriteConcernOptions(int numNodes, SyncMode sync, int timeout) : WriteConcernOptions(numNodes, sync, Milliseconds(timeout)) {} |