summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-05-16 11:57:51 -0400
committerRandolph Tan <randolph@10gen.com>2014-05-16 18:37:09 -0400
commit7bbc8d16db180835733c005d97064854c50f23a7 (patch)
treea1645a923791740f1908d2eb2de078464a206f1d /src/mongo
parent99bd567db407a89fda29bd83f46c0b72c6f775e3 (diff)
downloadmongo-7bbc8d16db180835733c005d97064854c50f23a7.tar.gz
SERVER-12273 Remove RCAR
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/s/shard.h2
-rw-r--r--src/mongo/s/shardconnection.cpp42
2 files changed, 0 insertions, 44 deletions
diff --git a/src/mongo/s/shard.h b/src/mongo/s/shard.h
index add17b15996..34f8db89f3e 100644
--- a/src/mongo/s/shard.h
+++ b/src/mongo/s/shard.h
@@ -304,8 +304,6 @@ namespace mongo {
*/
bool runCommand( const string& db , const BSONObj& cmd , BSONObj& res );
- static bool releaseConnectionsAfterResponse;
-
/** checks all of my thread local connections for the version of this ns */
static void checkMyConnectionVersions( const string & ns );
diff --git a/src/mongo/s/shardconnection.cpp b/src/mongo/s/shardconnection.cpp
index 36ef52766cd..8d43f8826cb 100644
--- a/src/mongo/s/shardconnection.cpp
+++ b/src/mongo/s/shardconnection.cpp
@@ -494,48 +494,6 @@ namespace mongo {
}
}
- bool ShardConnection::releaseConnectionsAfterResponse( true );
-
- namespace {
-
- /**
- * Custom deprecated RCAR server parameter
- */
- class DeprecatedRCARParameter : public ExportedServerParameter<bool> {
- public:
-
- DeprecatedRCARParameter( ServerParameterSet* sps,
- const std::string& name,
- bool* value,
- bool allowedToChangeAtStartup,
- bool allowedToChangeAtRuntime ) :
- ExportedServerParameter<bool>( sps,
- name,
- value,
- allowedToChangeAtStartup,
- allowedToChangeAtRuntime ) {
- }
-
- virtual ~DeprecatedRCARParameter() {}
-
- protected:
- virtual Status validate( const bool& newValue ) {
- if ( newValue == true )
- return Status::OK();
-
- return Status( ErrorCodes::BadValue,
- "releaseConnectionAfterResponse is always true in v2.6 and above" );
- }
- };
- }
-
- DeprecatedRCARParameter //
- ReleaseConnectionsAfterResponse( ServerParameterSet::getGlobal(),
- "releaseConnectionsAfterResponse",
- &ShardConnection::releaseConnectionsAfterResponse,
- true,
- true );
-
void ShardConnection::releaseMyConnections() {
ClientConnections::threadInstance()->releaseAll();
}