summaryrefslogtreecommitdiff
path: root/s/d_logic.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-06-11 17:16:58 -0400
committerEliot Horowitz <eliot@10gen.com>2010-06-11 17:16:58 -0400
commitcd005b0e587e96360eef620be80588109f0b5cc2 (patch)
tree310872c0371730c14aed8d2b7ff7c41a825bec5e /s/d_logic.h
parent76b74e2223647f76b15847070eceeb79915b821c (diff)
downloadmongo-cd005b0e587e96360eef620be80588109f0b5cc2.tar.gz
more mongod sharding cleaning
Diffstat (limited to 's/d_logic.h')
-rw-r--r--s/d_logic.h25
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;
+
}