diff options
author | Greg Studer <greg@10gen.com> | 2013-11-05 17:35:32 -0500 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2013-11-13 14:13:00 -0500 |
commit | 748093d2e57af5e6e2205546dc31d39a32af123b (patch) | |
tree | c610fc15a991789a34bb6a0f2fba3a3433edda54 /src/mongo/s/d_logic.h | |
parent | f798fa7be0594b64f86c8c18573e133337680858 (diff) | |
download | mongo-748093d2e57af5e6e2205546dc31d39a32af123b.tar.gz |
SERVER-10818 send shardName and version with every batch write request
Diffstat (limited to 'src/mongo/s/d_logic.h')
-rw-r--r-- | src/mongo/s/d_logic.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/s/d_logic.h b/src/mongo/s/d_logic.h index 41045811a81..25e3b14d5f6 100644 --- a/src/mongo/s/d_logic.h +++ b/src/mongo/s/d_logic.h @@ -61,10 +61,9 @@ namespace mongo { static void initialize(const string& server); void gotShardName( const string& name ); - void gotShardHost( string host ); + bool setShardName( const string& name ); // Same as above, does not throw - string getShardName() { return _shardName; } - string getShardHost() { return _shardHost; } + string getShardName() { scoped_lock lk(_mutex); return _shardName; } /** Reverts back to a state where this mongod is not sharded. */ void resetShardingState(); @@ -261,7 +260,6 @@ namespace mongo { string _configServer; string _shardName; - string _shardHost; // protects state below mutable mongo::mutex _mutex; |