diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-09-23 17:05:01 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-09-24 11:59:40 -0400 |
commit | 551329f05738f5f5c99df68b0598625ea16db4c6 (patch) | |
tree | 84d519de2e8e5e834333342d96dfcfb4e6ce2d18 /src/mongo/s/d_state.h | |
parent | 37acdec21b4f8ab951293a0de317bc52b1a9fd65 (diff) | |
download | mongo-551329f05738f5f5c99df68b0598625ea16db4c6.tar.gz |
SERVER-14668 Remove checkShardVersion
Shard version checking needs to be done under a collection lock and it is
already done inside the particular commands, so no need to do it again in
instance.cpp
Diffstat (limited to 'src/mongo/s/d_state.h')
-rw-r--r-- | src/mongo/s/d_state.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/mongo/s/d_state.h b/src/mongo/s/d_state.h index 2cdafc45f75..44332bafe7e 100644 --- a/src/mongo/s/d_state.h +++ b/src/mongo/s/d_state.h @@ -366,30 +366,6 @@ namespace mongo { ChunkVersion& wanted ); /** - * @return true if we took care of the message and nothing else should be done - */ - struct DbResponse; - - /** - * Returns true if the version of this thread is compatible wit hthe global - * version of this shard. Also builds an error response if the version was - * not compatible. - */ - bool _checkShardVersion(Message &m, DbResponse* dbresponse); - - /** - * Returns true if the version of this thread is compatible with the global - * version of this shard. - * - * Note: Last use of this function are for queries. - */ - inline bool checkShardVersion(Message &m, DbResponse* dbresponse) { - if( !shardingState.enabled() ) - return true; - return _checkShardVersion(m, dbresponse); - } - - /** * If a migration for the chunk in 'ns' where 'obj' lives is occurring, save this log entry * if it's relevant. The entries saved here are later transferred to the receiving side of * the migration. A relevant entry is an insertion, a deletion, or an update. |