diff options
author | Randolph Tan <randolph@10gen.com> | 2013-12-09 16:14:48 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2013-12-09 16:14:48 -0500 |
commit | 0789de6960c7ab76aaa297d57174b79acc35a68a (patch) | |
tree | 93ad702bb94b2f7d504a0d9b63ec52826776a624 /src/mongo/s/dbclient_multi_command.cpp | |
parent | 985f05b42e948890b149d1c0570da717edbcc599 (diff) | |
download | mongo-0789de6960c7ab76aaa297d57174b79acc35a68a.tar.gz |
SERVER-11949 add 30s timeout to config server batch writes
Fix unit conversion error
Diffstat (limited to 'src/mongo/s/dbclient_multi_command.cpp')
-rw-r--r-- | src/mongo/s/dbclient_multi_command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/dbclient_multi_command.cpp b/src/mongo/s/dbclient_multi_command.cpp index 6a50d5dd916..dc43c658460 100644 --- a/src/mongo/s/dbclient_multi_command.cpp +++ b/src/mongo/s/dbclient_multi_command.cpp @@ -151,7 +151,7 @@ namespace mongo { // TODO: Figure out how to handle repl sets, configs dassert( command->endpoint.type() == ConnectionString::MASTER || command->endpoint.type() == ConnectionString::CUSTOM ); - command->conn = shardConnectionPool.get( command->endpoint, _timeoutMillis ); + command->conn = shardConnectionPool.get( command->endpoint, _timeoutMillis / 1000 ); if ( hasBatchWriteFeature( command->conn ) || !isBatchWriteCommand( command->cmdObj ) ) { |