summaryrefslogtreecommitdiff
path: root/s/shard.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-07-23 10:51:48 -0400
committerEliot Horowitz <eliot@10gen.com>2010-07-23 10:51:48 -0400
commit10e4067b4b9b92ba2f973703364c416e2fefc57e (patch)
tree5c4b202ac2dc0f2b55fd64f0a9ebc187fa36672b /s/shard.h
parente1eba3dc3ab99c6f59c56b597403feed5c1a3a2d (diff)
downloadmongo-10e4067b4b9b92ba2f973703364c416e2fefc57e.tar.gz
framework for retrying commands because data out of sync SERVER-1471
Diffstat (limited to 's/shard.h')
-rw-r--r--s/shard.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/s/shard.h b/s/shard.h
index 71576ccc350..a2032b55413 100644
--- a/s/shard.h
+++ b/s/shard.h
@@ -225,6 +225,14 @@ namespace mongo {
_setVersion = false;
_finishedInit = true;
}
+
+ /**
+ this just passes through excpet it checks for stale configs
+ */
+ bool runCommand( const string& db , const BSONObj& cmd , BSONObj& res );
+
+ /** checks all of my thread local connections for the version of this ns */
+ static void checkMyConnectionVersions( const string & ns );
private:
void _init();