diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-06-11 17:16:58 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-06-11 17:16:58 -0400 |
commit | cd005b0e587e96360eef620be80588109f0b5cc2 (patch) | |
tree | 310872c0371730c14aed8d2b7ff7c41a825bec5e /s/d_logic.h | |
parent | 76b74e2223647f76b15847070eceeb79915b821c (diff) | |
download | mongo-cd005b0e587e96360eef620be80588109f0b5cc2.tar.gz |
more mongod sharding cleaning
Diffstat (limited to 's/d_logic.h')
-rw-r--r-- | s/d_logic.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/s/d_logic.h b/s/d_logic.h index f3174b8bd31..998725ebd1d 100644 --- a/s/d_logic.h +++ b/s/d_logic.h @@ -22,9 +22,13 @@ namespace mongo { - /* queue a write back on a remote server for a failed write */ - void queueWriteBack( const string& remote , const BSONObj& o ); + // ----------------- + // --- core --- + // ----------------- + unsigned long long extractVersion( BSONElement e , string& errmsg ); + + /** * @return true if we have any shard info for the ns */ @@ -39,4 +43,21 @@ namespace mongo { * @return true if we took care of the message and nothing else should be done */ bool handlePossibleShardedMessage( Message &m, DbResponse &dbresponse ); + + // ----------------- + // --- writeback --- + // ----------------- + + /* queue a write back on a remote server for a failed write */ + void queueWriteBack( const string& remote , const BSONObj& o ); + + + + // TEMP TEMP TEMP + + typedef map<string,unsigned long long> NSVersionMap; + + extern NSVersionMap globalVersions; + extern boost::thread_specific_ptr<NSVersionMap> clientShardVersions; + } |